Browse Source

Merge pull request #303 from nchase/patch-1

use `window.page{d}Offset` instead of `window.scroll{d}`
pull/309/head
Lebedev Konstantin 10 years ago
parent
commit
5d2b760021
  1. 2
      Sortable.js
  2. 2
      Sortable.min.js

2
Sortable.js

@ -144,7 +144,7 @@
if (el) { if (el) {
autoScroll.pid = setInterval(function () { autoScroll.pid = setInterval(function () {
if (el === win) { if (el === win) {
win.scrollTo(win.scrollX + vx * speed, win.scrollY + vy * speed); win.scrollTo(win.pageXOffset + vx * speed, win.pageYOffset + vy * speed);
} else { } else {
vy && (el.scrollTop += vy * speed); vy && (el.scrollTop += vy * speed);
vx && (el.scrollLeft += vx * speed); vx && (el.scrollLeft += vx * speed);

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save