From 53c9355a0cd7df8dfab4edca4924b5dbdc5b698e Mon Sep 17 00:00:00 2001 From: sp-kilobug Date: Sat, 27 Jun 2015 15:13:43 +0200 Subject: [PATCH] Revert "#422: fix fallback moves in owner container" --- Sortable.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Sortable.js b/Sortable.js index 790f514..a2477f6 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 }