jquery.scrollbar icon indicating copy to clipboard operation
jquery.scrollbar copied to clipboard

OnScroll event firing before initialize

Open rameshkithsiri opened this issue 7 years ago • 0 comments

I want to start the scrollbar from bottom and prepending data when user scrolled to top.


{
        onInit: function(){
            $('.scroll-Element').scrollTop(100000);
        },
        onScroll: function(y,x){
            if(y.scroll==0&&y.maxScroll>0){
              // Loading data and prepending
            }
        }
    }

But all data loading when initializing.

rameshkithsiri avatar Aug 06 '18 08:08 rameshkithsiri