Prevented jumping when dragging starts by using height for y-value.