Danielle Cerisier
Danielle Cerisier
Here's an implementation based on someone elses jsfiddle. http://jsfiddle.net/dw3xdhch/43/ You can only drag/drop using the handle provided due to line 2: allowFrom('.handle')
Any info on the // TODO: position the clone appropriately Haven't got a solution working yet.
I looked a bit into it @wislem . I couldn't get it to work with touch screen even when entirely deleting all your cloning code, try out http://jsfiddle.net/gv0f16nq/41/ Haven't worked...
>but this has the exact same behavior Well yeah, that's what I'm saying. But yes, I'd go with a different library this one has a lot of difficulties with manual...
Would be brilliant, I change the resolution of parent containers a lot in my application and have struggled with the lack of this feature.
More of a workaround but i've just been using a handle. Don't know if that suits your use. HTML: ``` html ``` Javascript: ``` javascript interact('.drag-element') .draggable({ inertia: false, restrict:...
Other approaches that may work are to chain .preventDefault('never') on your interactable, though this may well cause other issues.
Call `interact.dynamicDrop(true);` http://jsfiddle.net/uwwfud3p/14/ That will fix your issue. Scrolling still probably won't work how you want though since elements positioned absolutely, and thus dropped elements will not retain their drop...
That may be the best way, as long as you're fine with the birthday card not being draggable. Just make an interact targetting Div2 that makes changes to Div1.
I think you may need to change your movement listeners: e.g. ``` function dragMoveListener (event) { var target = event.target, // keep the dragged position in the data-x/data-y attributes x...