(WIP) Fixing the behavior of the dragging mode.