fredwu / jquery-endless-scroll

Endless/infinite scrolling/pagination.
http://fredwu.github.com/jquery-endless-scroll/
837 stars 176 forks source link

Endless Scroll only working once [using callback] #37

Closed nffdiogosilva closed 10 years ago

nffdiogosilva commented 10 years ago

I there, the callback is only being called once.

I'm using alert to count pageSequence, but every time i scroll down, the alert only is called once.

Code example:

$("#events").endlessScroll({
                inflowPixels: 50,
                fireDelay: 10,
                loader: loader,
                callback: function(fireSequence, pageSequence, scrollDirection){
                    alert(pageSequence);
                    var foo = "bar";
                }
            });
nffdiogosilva commented 10 years ago

I was using the latest branch, the version 2.0. So i guess that is the reason it wasn't working properly. Pass it to 1.6.0