Function for filtering extraneous mousemoves

Track mouse position to check mouse has really moved.