Improve mouseup/mousedown behaviour when dragging: