diff --git a/Sortable.js b/Sortable.js index 790f514b6..a2477f6fd 100644 --- a/Sortable.js +++ b/Sortable.js @@ -1057,11 +1057,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 }