mounted() {
        this.firstItemToRender = 0;
        this.lastItemToRender = Math.floor(this.$el.clientHeight / this.itemHeight);

        this.$el.addEventListener("scroll", this.onScroll, false)
    }
/**
     * Setup the initial state and attach the scroll listener
     */
Setup the initial state and attach the scroll listener
Setup the initial state and attach the scroll listener
mounted() {
        this.firstItemToRender = 0;
        this.lastItemToRender = Math.floor(this.$el.clientHeight / this.itemHeight);
        this.$el.addEventListener("scroll", this.onScroll, false)
    }
mounted ( ) { this . firstItemToRender = 0 ; this . lastItemToRender = Math . floor ( this . $el . clientHeight / this . itemHeight ) ; this . $el . addEventListener ( "scroll" , this . onScroll , false ) }
Setup the initial state and attach the scroll listener
Setup the initial state and attach the scroll listener