taye / interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
http://interactjs.io/
MIT License
12.38k stars 785 forks source link

Dragging elements inside the cage #689

Closed username1565 closed 5 years ago

username1565 commented 5 years ago

Is this possible, to dragging elements inside the cage, like here: http://jsfiddle.net/wfMLe/2/ If yes, can you add this as example to http://interactjs.io/ ? I see your example "Snapping" but there is one element and this is dragging after area... Need to using many elements, to change this positions in the cage, after gragging some element...

taye commented 5 years ago

This question is more suitable for stackoverflow.com