Skip to content

Commit ac2613b

Browse files
committed
Prevent multiple timer launch (angry clicks bug). Attemp dev pull request.
1 parent 08011f5 commit ac2613b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tabs/tabs.slideshow.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
* Similar fix for autoscroll animation queue problem
5555
*/
5656
function next(){
57+
// Fixes https://github.com/jquerytools/jquerytools/issues/885
58+
if (timer) clearTimeout(timer); // reset timeout, especially for angry clicks
5759
timer = setTimeout(function(){
5860
tabs.next();
5961
}, conf.interval);

0 commit comments

Comments
 (0)