Skip to content

Commit 052fdfe

Browse files
author
Duc Tri Le
committed
Merge pull request jquerytools#627 from poxd/master
jquerytools#591 fix: double scrolling issue when autoscroll is on
2 parents 50bf1b5 + 9f20c00 commit 052fdfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scrollable/scrollable.autoscroll.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
* Fixes this bug: http://flowplayer.org/tools/forum/25/72029
4545
*/
4646
function scroll(){
47+
// Fixes https://github.com/jquerytools/jquerytools/issues/591
48+
if (timer) clearTimeout(timer); // reset timeout, especially for onSeek event
4749
timer = setTimeout(function(){
4850
api.next();
4951
}, opts.interval);

0 commit comments

Comments
 (0)