Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
4.11k
stars
1.51k
forks
source link
Help me! body Tag callbacks not work #620
Open
romy2012 opened 5 years ago
body,html{height: 100%;}
$("body").mCustomScrollbar({ theme:"minimal-dark", scrollButtons:{ enable:true }, callbacks:{ onScrollStart:function(){ myCallback(this,"#onScrollStart") }, onScroll:function(){ myCallback(this,"#onScroll") }, onTotalScroll:function(){ myCallback(this,"#onTotalScroll") }, onTotalScrollOffset:60, onTotalScrollBack:function(){ myCallback(this,"#onTotalScrollBack") }, onTotalScrollBackOffset:50, whileScrolling:function(){ console.log('xxxxx') }, alwaysTriggerOffsets:false } });