Skip to content

Commit c8c5ff7

Browse files
committed
Immediate FadeIn without waiting for on-going FadeOut Animation.
1 parent bc85f22 commit c8c5ff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slimScroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@
251251
releaseScroll = true;
252252
return;
253253
}
254-
bar.fadeIn('fast');
255-
if (railVisible) { rail.fadeIn('fast'); }
254+
bar.stop(true,true).fadeIn('fast');
255+
if (railVisible) { rail.stop(true,true).fadeIn('fast'); }
256256
}
257257

258258
var hideBar = function()

0 commit comments

Comments
 (0)