JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
12.32k
stars
783
forks
source link
I have text in a canvas and want to re-position inside a canvas, co-ordinates x & y is working but right and bottom is not working #991
Open
atifqadeer opened 1 year ago
interact("div.mockup").draggable({ inertia: false, autoScroll: true, onmove: dragMoveListener, modifiers: [ interact.modifiers.restrictRect({ restriction: document.querySelector('#sence'), endOnly: true, }) ] }) interact(mockup1).draggable({ inertia: false, autoScroll: true, onmove: dragMoveListener, modifiers: [ interact.modifiers.restrictRect({ restriction: document.querySelector('#sence'), endOnly: true, }) ] })