From a9a4b93980c06225bf97b67b9fa26e755bf91b93 Mon Sep 17 00:00:00 2001 From: Jang Jun Date: Tue, 20 Dec 2016 16:43:40 +0800 Subject: [PATCH] Fix error when use scrollFn --- Sortable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 720e56d..2cab904 100644 --- a/Sortable.js +++ b/Sortable.js @@ -92,7 +92,8 @@ _autoScroll = _throttle(function (/**Event*/evt, /**Object*/options, /**HTMLElement*/rootEl) { // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521 if (rootEl && options.scroll) { - var el, + var _this = rootEl[expando], + el, rect, sens = options.scrollSensitivity, speed = options.scrollSpeed,