These are chat archives for taye/interact.js

14th
Oct 2015
Zeeshan Jan
@zeeshanjan82
Oct 14 2015 05:53
Hi I am currently implementing the drag and drop using interact.js I would like to snap the div back to the start position but when I try to do that it always snaps to slightly to right and sometimes to top
I have used `````js
 snap: {
    mode: 'anchor',
    anchors: [startPos],
    range: Infinity,
    elementOrigin: { x: 0.5, y: 0.5 },
    endOnly: true
  },
zafi
@zafi
Oct 14 2015 11:20
Hello people, i am currently trying to make draggable object can only dragged into a specific tables cells. i have restricted it into table zone, but elements still can be dragged to borders of a table. Is there a way to let objects to dragged only to table cells? Thank you
Danny Jager
@DDJager
Oct 14 2015 12:54
@taye Thanks! And yes, that's true, but now I have at least an idea where to start :smile:
And that is the hardest part of programming imo, knowing where to start :worried: