Stop resize if button isn't pressed

Previously dragging off screen and then releasing the mouse button
would continue the drag when moving back over the document.

This same style of fix is done in the editor view for selections.

Closes atom/atom#2683
Stop resize tracking when view is removed