Fix mouseups outside the window