More stable mouse dragging