briangonzalez / jquery.pep.js

👟 Pep, a lightweight plugin for kinetic drag on mobile/desktop
http://pep.briangonzalez.org
1.3k stars 178 forks source link

Click auto insert and draggable disappear #171

Closed plasid closed 7 years ago

plasid commented 9 years ago

I have a list of widgets that can be cloned and dragged to droppables, hence one can drag many instances of a widget to droppables via cloning. This works 100%, my only problem is: When you don't click and hold the original widget to drag, but only click it once Pep then auto inserts the widget into the first droppable container and then the original draggable widget disappears from the list. The original widget must always stay in the list and Pep must not auto insert it, how do I stop this behaviour?

I've used this method http://codepen.io/briangonzalez/pen/57d2c31feac0053f98ce3555ebf9f3f6