Browse Source

fix multiline float/flex

pull/527/head
sp-kilobug 9 years ago
parent
commit
f95fb46bb1
  1. 6
      Sortable.js

6
Sortable.js

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

Loading…
Cancel
Save