Handle mouse move outside the window boundary