Browse Source

Merge pull request #9 from sp-kilobug/sp-kilobug-patch-2

#422: fix fallback moves in owner container
pull/459/head
sp-kilobug 10 years ago
parent
commit
14ecef21e5
  1. 8
      Sortable.js

8
Sortable.js

@ -1057,9 +1057,11 @@
/** @returns {HTMLElement|false} */
function _ghostInBottom(el, evt) {
var lastEl = el.lastElementChild,
rect = lastEl.getBoundingClientRect();
var lastEl = el.lastElementChild;
if (lastEl===ghostEl) {
lastEl = lastEl.previousElementSibling || ghostEl;
}
var rect = lastEl.getBoundingClientRect();
return (evt.clientY - (rect.top + rect.height) > 5) && lastEl; // min delta
}

Loading…
Cancel
Save