bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
21.89k stars 1.97k forks source link

Drag img and drop into img #623

Closed Herz3h closed 4 years ago

Herz3h commented 4 years ago

Create an img draggable, and a droppable img and try to drag into the droppable area.

It's somehow not working. Here is an example:

https://codepen.io/Herz3h/pen/LYPQvvj

Herz3h commented 4 years ago

Ok I misused the library. I should specify parent element of what I want to be draggable/droppable.

Unfortunately even with that, my elements get dropped BEFORE instead of ON TOP OF the element I want.

Little google searching sent me here and apparently dragula doesn't support absolute positioning. Unfortunate.