SIGN IN SIGN UP
SortableJS / Sortable UNCLAIMED

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.

0 0 46 JavaScript

Sometimes evt.from is different from evt.item.parentNode because the item has been moved already so using evt.item.nextSibling won't work when doing evt.from.insertBefore, because nextSibling is not a child of evt.from.

So in those cases we use evt.clone.nextSibling instead.
M
mkun committed
e03656d860c11aa872c59247a6c5e877e477044c
Parent: 51337f7