Browse Source

Merge pull request #662 from J-Zeitler/dev

fix a bug causing wrapped float/flex elements to flicker when sorted
pull/675/head
Lebedev Konstantin 9 years ago
parent
commit
18dd1bd4f5
  1. 3
      Sortable.js
  2. 2
      Sortable.min.js

3
Sortable.js

@ -683,6 +683,9 @@
if (elTop === tgTop) {
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide;
}
else if (target.previousElementSibling === dragEl || dragEl.previousElementSibling === target) {
after = (evt.clientY - targetRect.top) / height > 0.5;
} else {
after = tgTop > elTop;
}

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save