Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Differences between the demo version & the version downloaded : drag bug

Open FloJess opened this issue 10 years ago • 5 comments

I have a curious issue with the Sortable JavaScript Library. There are some differences between the demo version : http://rubaxa.github.io/Sortable/ and the version downloaded.

When I click on an element without dragging, I can't drag it after. There is the same issue on Mozilla Firefox and Chrome.

Maybe there are others users who found this issue. Can you help me?

EDIT : Problem fixed thanks to AusQB.

In Sortable.js, line 827, write: if (Sortable.active === this || !Sortable.active) instead of: if (Sortable.active === this)

FloJess avatar Jul 25 '16 09:07 FloJess

I've noticed this same issue; still looking for a solution.

joeclayallday avatar Jul 26 '16 15:07 joeclayallday

Good news, I've fixed the "drag bug" thanks to this topic :) https://github.com/RubaXa/Sortable/issues/917

FloJess avatar Jul 26 '16 15:07 FloJess

giphy

joeclayallday avatar Jul 26 '16 15:07 joeclayallday

Please note that I'm not 100% sure this fix is correct. I'm not familiar enough with the code yet. While it works in my case, and in your case too, it might not work in some other case (I haven't tested all functionality). I hope somebody else can verify that this is the correct fix for this issue?

bramdebouvere avatar Jul 26 '16 16:07 bramdebouvere

This issue is already fixed in the dev branch BTW.

smathson avatar Jul 26 '16 17:07 smathson