tweaked mouse move event handling