Draggable only on certain area
Closed this issue · 1 comments
dafoer commented
Seems that now you can drag divs around whole body area, correct? Could it there that one could drags divs only inside certain div? How is this possible to add/implement if not yet implemented?
heyman commented
Hi!
It's not something that is supported, but you should be able to modify the lib to support it. You would need to check that the element stays within the div before updating it's position (here: https://github.com/heyman/jquery-draggable-touch/blob/master/jquery.draggableTouch.js#L62-L64).