Skip to content

Commit

Permalink
Revert "SortableJS#422: fix fallback mode moves in owner container"
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-kilobug committed Jun 27, 2015
1 parent 45f0561 commit 021f2b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,9 @@

/** @returns {HTMLElement|false} */
function _ghostInBottom(el, evt) {
var lastEl = el.lastElementChild;
if (lastEl===ghostEl) {
lastEl = lastEl.previousElementSibling || ghostEl;
}
var rect = lastEl.getBoundingClientRect();
var lastEl = el.lastElementChild,
rect = lastEl.getBoundingClientRect();

return (evt.clientY - (rect.top + rect.height) > 5) && lastEl; // min delta
}

Expand Down

0 comments on commit 021f2b3

Please sign in to comment.