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