Browse Source

Merge pull request #527 from sp-kilobug/sp-kilobug-patch-6

fix multiline float + move below
pull/350/merge
Lebedev Konstantin 9 years ago
parent
commit
76924cad94
  1. 8
      Sortable.js

8
Sortable.js

@ -639,7 +639,13 @@
after = (moveVector === 1); after = (moveVector === 1);
} }
else if (floating) { else if (floating) {
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide; var elTop = dragEl.offsetTop,
tgTop = target.offsetTop;
if (elTop===tgTop) {
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide;
} else {
after = tgTop > elTop;
}
} else { } else {
after = (nextSibling !== dragEl) && !isLong || halfway && isLong; after = (nextSibling !== dragEl) && !isLong || halfway && isLong;
} }

Loading…
Cancel
Save