Branches the dragging logic.