|
|
@ -683,9 +683,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
if (elTop === tgTop) { |
|
|
|
if (elTop === tgTop) { |
|
|
|
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide; |
|
|
|
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide; |
|
|
|
} else { |
|
|
|
|
|
|
|
after = tgTop > elTop; |
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (target.previousElementSibling === dragEl || dragEl.previousElementSibling === target) { |
|
|
|
|
|
|
|
after = (evt.clientY - targetRect.top) / height > 0.5; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
after = tgTop > elTop; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
after = (nextSibling !== dragEl) && !isLong || halfway && isLong; |
|
|
|
after = (nextSibling !== dragEl) && !isLong || halfway && isLong; |
|
|
|
} |
|
|
|
} |
|
|
|