Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

OnScroll event firing before initialize #161

Open
rameshkithsiri opened this issue Aug 6, 2018 · 0 comments
Open

OnScroll event firing before initialize #161

rameshkithsiri opened this issue Aug 6, 2018 · 0 comments

Comments

@rameshkithsiri
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant