Skip to content

Commit d96513c

Browse files
committed
Merge pull request rochal#15 from InspiredJW/patch-1
Immediate FadeIn without waiting for on-going FadeOut Animation.
2 parents 686a818 + c8c5ff7 commit d96513c

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
@@ -259,8 +259,8 @@
259259
releaseScroll = true;
260260
return;
261261
}
262-
bar.fadeIn('fast');
263-
if (railVisible) { rail.fadeIn('fast'); }
262+
bar.stop(true,true).fadeIn('fast');
263+
if (railVisible) { rail.stop(true,true).fadeIn('fast'); }
264264
}
265265

266266
var hideBar = function()

0 commit comments

Comments
 (0)