Using the same method for dragging endpoints as dragging the whole box and added event bindings to the cross section slider so it doesn't interfere with moving the segment potentials.