Skip to content

Commit

Permalink
Merge pull request malihu#137 from thehappycoder/patch-1
Browse files Browse the repository at this point in the history
Optimize scrolling when trackpad is used
  • Loading branch information
malihu committed May 8, 2014
2 parents 92a4613 + 32b9bb2 commit faabf86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/uncompressed/jquery.mCustomScrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,9 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html.
functions={
/*hide/show scrollbar*/
showScrollbar:function(){
this.stop().animate({opacity:1},"fast");
if ($(this).css('opacity') == 0) {
this.stop().animate({opacity:1},"fast");
}
},
hideScrollbar:function(){
this.stop().animate({opacity:0},"fast");
Expand Down

0 comments on commit faabf86

Please sign in to comment.