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

Created on 25 Jul 2016  路  5Comments  路  Source: SortableJS/Sortable

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)_

Most helpful comment

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

All 5 comments

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

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

giphy

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?

This issue is already fixed in the dev branch BTW.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PanzerKunst picture PanzerKunst  路  4Comments

kinjal-codes picture kinjal-codes  路  3Comments

Webifi picture Webifi  路  3Comments

chrishaigy picture chrishaigy  路  3Comments

binitghetiya picture binitghetiya  路  4Comments