提交 558c6335 编写于 作者: O Owen Mills

preformance improvement

上级 d83734a8
......@@ -228,10 +228,10 @@ let dragEl,
_detectNearestEmptySortable = function(x, y) {
let ret;
sortables.some((sortable) => {
if (lastChild(sortable)) return;
const threshold = sortable[expando].options.emptyInsertThreshold;
if (!threshold || lastChild(sortable)) return;
let rect = getRect(sortable),
threshold = sortable[expando].options.emptyInsertThreshold,
const rect = getRect(sortable),
insideHorizontally = x >= (rect.left - threshold) && x <= (rect.right + threshold),
insideVertically = y >= (rect.top - threshold) && y <= (rect.bottom + threshold);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册