Don't crash when a drag ends off-screen.
Don't crash when a drag ends off-screen.

Instead, keep track for each dragged mouse button of the last position
the mouse was seen while that button was being dragged. When releasing
the button, fall back on that if there's no current mouse position.

CheeseLord/warts,CheeseLord/warts