mouse lock checking improved
.