Revert "Change mouse move handler"

This reverts commit 8d83847012e42f9ff1311d0dafeba197cbb84d63.