These are chat archives for taye/interact.js

15th
Jul 2015
rastapopolous
@rastapopolous
Jul 15 2015 02:02
Hi, I'm a new convert to interact, slowly getting the concepts down, started w a very simple example, which i cannot get to work properly. Was working off of the simplest dragging demo at http://interactjs.io/ to try and do the same. Locally i can run the code no errors in the console, dependcies seem fine, mouseover the draggable object changes pointer to crosshairs as it should, but the object wont move. I moved it to jsfiddle here: https://jsfiddle.net/rastapopoulos/1uhsdr7a/ in jsfiddle also no errors but the mouseover crosshairs no longer show up
blob
rastapopolous
@rastapopolous
Jul 15 2015 02:12
Kind of mystified, and pretty certain im overlooking something pretty obvious. Any feedback much appreciated. Thanks!
rastapopolous
@rastapopolous
Jul 15 2015 19:44
Anyone out there? :)
McFarts
@McFarts
Jul 15 2015 21:36
@taye Any update on the lightweight interactjs file? :( Been forever ha. Thanks! ~
taye
@taye
Jul 15 2015 22:10
@calebroseland as @loverdrive said, changing only the snap targets should be safe. You can provide an entirely new array of targets, or you can change the properties of the individual elements of the array. Changing the relativePoints and offsets during an action probably won't work well.
@rastapopolous interact.js doesn't move the target element automatically. It only provides the drag event data. You need a dragmove event listener function that does the movement. You can copy the one on the homepage demo.
taye
@taye
Jul 15 2015 22:52
@McFarts It's been happening slowly and I've very recently opened PR #231 to make the progress more visible.