Skip to content

Commit 6e9ec0a

Browse files
authored
Merge pull request SortableJS#1013 from ycloud/master
Fix error when use scrollFn
2 parents 451e4f8 + a9a4b93 commit 6e9ec0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sortable.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292
_autoScroll = _throttle(function (/**Event*/evt, /**Object*/options, /**HTMLElement*/rootEl) {
9393
// Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
9494
if (rootEl && options.scroll) {
95-
var el,
95+
var _this = rootEl[expando],
96+
el,
9697
rect,
9798
sens = options.scrollSensitivity,
9899
speed = options.scrollSpeed,

0 commit comments

Comments
 (0)