I have set up a jquery draggable that can be moved throughout the document, it is not contained in anything, and this is acceptable, because when the user drags, I want them to be able to drag so far the page (either left or right) as I like.
In fact, the only limitation I want is that they should prevent the item from being dragged out of the top of the page.
Is it possible to prevent dragging beyond just one edge of the container?
source share