Browse Source

Fix error when use scrollFn

pull/1013/head
Jang Jun 8 years ago committed by GitHub
parent
commit
a9a4b93980
  1. 3
      Sortable.js

3
Sortable.js

@ -92,7 +92,8 @@
_autoScroll = _throttle(function (/**Event*/evt, /**Object*/options, /**HTMLElement*/rootEl) { _autoScroll = _throttle(function (/**Event*/evt, /**Object*/options, /**HTMLElement*/rootEl) {
// Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521 // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
if (rootEl && options.scroll) { if (rootEl && options.scroll) {
var el, var _this = rootEl[expando],
el,
rect, rect,
sens = options.scrollSensitivity, sens = options.scrollSensitivity,
speed = options.scrollSpeed, speed = options.scrollSpeed,

Loading…
Cancel
Save