Skip to content

Commit fc83ee6

Browse files
committed
Updated autoscroll to support documented "steps" configuration setting.
1 parent 7c6634b commit fc83ee6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scrollable/scrollable.autoscroll.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
conf: {
1919
autoplay: true,
2020
interval: 3000,
21-
autopause: true
21+
autopause: true,
22+
steps: 1
2223
}
2324
};
2425

@@ -47,7 +48,8 @@
4748
// Fixes https://github.com/jquerytools/jquerytools/issues/591
4849
if (timer) clearTimeout(timer); // reset timeout, especially for onSeek event
4950
timer = setTimeout(function(){
50-
api.next();
51+
var conf = api.getConf();
52+
api.move(opts.steps, opts.steps*conf.speed);
5153
}, opts.interval);
5254
}
5355

0 commit comments

Comments
 (0)