Infinite scrolling pagination


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
        $(window).on("scroll" ,this.scrollHandler);


Did you find a decision?