input bugfix

fixed: when you release the mouse outside the canvas, it still thinks
you're dragging