Dragging bug fix

The y value for dragging is now based on height which gives a smoother dragging start without jumping.