bevacqua / dragula

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

revertOnSpill doesn't work #478

Closed twwd closed 7 years ago

twwd commented 7 years ago

On the demo page, the example for the revertOnSpilloption doesn't work for me.

Tested on Win 10 and Ubuntu with Firefox and Chromium.

SheW0lf commented 7 years ago

I'm not sure if someone went ahead and fixed this issue, but it seems to be working fine for me with Windows 10 FireFox and Chrome as well as my Ubuntu machine on Chrome

twwd commented 7 years ago

For me, it still doesn't work, tested on Windows 10 and Android in Firefox and Chromium. The items jump back to the last container and not to the origin container.

revertonspill

SheW0lf commented 7 years ago

The revertOnSpill is supposed to return the element to the last position it was in before the spill over not it's original position. It appears to be working correctly in your example above.

twwd commented 7 years ago

It looks like I misunderstood the description of this feature. I thought the items go back to the container where there were first listed and not just back to their last list position. That would be the feature I need...

My fault - sorry for that.