Skip to content

Commit 20b311a

Browse files
author
Anders Grimsrud
committed
Added stop() at line 182 to prevent animation queue buildup.
1 parent 3cd3e86 commit 20b311a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.smooth-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ $.smoothScroll = function(options, px) {
179179
speed = speed / opts.autoCoefficent;
180180
}
181181

182-
$scroller.animate(aniprops,
182+
$scroller.stop().animate(aniprops,
183183
{
184184
duration: speed,
185185
easing: opts.easing,

0 commit comments

Comments
 (0)