desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 387 forks source link

How can a clone, copy or avatar be dragged instead of the original element? #135

Closed ipavlic closed 7 years ago

ipavlic commented 8 years ago

I'd like to be able to "drag" a single element multiple times. So instead of dragging the element, I'd like to drag its copy, clone or avatar. How can I use draggabilly in that scenario? Can I fire some events on the clone that will initiate the drag once the original has been cloned into the DOM?

desandro commented 8 years ago

Hmm maybe. Draggabilly does not support cloning. Rather than trying to shoe-horn it in with Draggabilly, you may want to look at jQuery UI Draggable or Dragula which support cloning.