Infinite scrolling pagination


#1

How create infinite scrolling like pagination in this forum… i’m confuse to catch event window scroll, i’m trying place event window scrool on template rendered, but its not working…

    Template.dashboard.onRendered(function() {
        this.scrollHandler = function(){
            // you can use the this keyword here to reference the template instance
            console.log("dashboard1 scroll");
            //... doing pagination and sticky element for dashboard1
        }.bind(this);
        $(window).on("scroll" ,this.scrollHandler);
    });

#2

Did you find a decision?