Fixed mouse move handler error when dragging in a single direction