Quickly capture mouse going out of the window when getting position