Update dragging logic to be relative to starting point