Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f20c00

Browse files
committed
evrard proposition to fix scrollable issue described in jquerytools#591 (see jquerytools#591 (comment))
1 parent fc1115e commit 9f20c00

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)