Restored the handling of mouse motions