We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83734a commit 558c633Copy full SHA for 558c633
src/Sortable.js
@@ -228,10 +228,10 @@ let dragEl,
228
_detectNearestEmptySortable = function(x, y) {
229
let ret;
230
sortables.some((sortable) => {
231
- if (lastChild(sortable)) return;
+ const threshold = sortable[expando].options.emptyInsertThreshold;
232
+ if (!threshold || lastChild(sortable)) return;
233
- let rect = getRect(sortable),
234
- threshold = sortable[expando].options.emptyInsertThreshold,
+ const rect = getRect(sortable),
235
insideHorizontally = x >= (rect.left - threshold) && x <= (rect.right + threshold),
236
insideVertically = y >= (rect.top - threshold) && y <= (rect.bottom + threshold);
237
0 commit comments