Added dragging contrainst to within range of the x scale