Skip to content

Commit

Permalink
SortableJS#1580: Fix plugins' references to options
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLuo465 committed Aug 7, 2019
1 parent e1d3de8 commit 79a6221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions plugins/AutoScroll/AutoScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function AutoScrollPlugin() {
// MACOS Safari does not have autoscroll,
// Firefox and Chrome are good
if (fallback || Edge || IE11OrLess || Safari) {
autoScroll(evt, this.options, elem, fallback);
autoScroll(evt, this.sortable.options, elem, fallback);

// Listener for pointer element change
let ogElemScroller = getParentAutoScrollElement(elem, true);
Expand All @@ -127,7 +127,7 @@ function AutoScrollPlugin() {
ogElemScroller = newElem;
clearAutoScrolls();
}
autoScroll(evt, this.options, newElem, fallback);
autoScroll(evt, this.sortable.options, newElem, fallback);
}, 10);
lastAutoScrollX = x;
lastAutoScrollY = y;
Expand All @@ -138,7 +138,7 @@ function AutoScrollPlugin() {
clearAutoScrolls();
return;
}
autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
autoScroll(evt, this.sortable.options, getParentAutoScrollElement(elem, false), false);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/MultiDrag/MultiDrag.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function MultiDragPlugin() {
// Do not "unfold" after around dragEl if reverted
if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {
let dragRect = getRect(dragEl),
multiDragIndex = index(dragEl, ':not(.' + this.options.selectedClass + ')');
multiDragIndex = index(dragEl, ':not(.' + sortable.options.selectedClass + ')');

if (!initialFolding && options.animation) dragEl.thisAnimationDuration = null;

Expand Down

0 comments on commit 79a6221

Please sign in to comment.