These are chat archives for taye/interact.js

13th
Mar 2016
Callem Pittard
@chips5k
Mar 13 2016 11:31
Hi, i am just wondering if there is a way to intercept the "endOnly" move restrict event - so i can override the position where the element snaps back to (when using restrict)
e.g if an item is dragged outside a restrict container, i would like to revert to original position, rather than snap to the closest allowed pos
Édipo Hikari
@shuhikari
Mar 13 2016 18:47
@chips5k If i`m not wrong, I saw this implementation using a variable anchor on the snap
Callem Pittard
@chips5k
Mar 13 2016 21:18
@shuhikari - yeah i eventually got it working with that solution , thanks!
Édipo Hikari
@shuhikari
Mar 13 2016 22:49
Anyone have a clue of, after a drop, make the target overflow hidden with the snapped object? Is similar to a canvas image mask (which I was intending to implement in the drop event)