Revert "Fixed bug in latest commit"

This reverts commit 2dfdc6019b1fb0127ca3e5733a52b5ddf29e058f.
Fixed mousemove bug