lib/methods/debounced-scroll.js
function debouncedScroll() {
    let timeout;

    return () => {
        clearTimeout(timeout);

        timeout = setTimeout(() => {
            scrollHandler(this.trackedElements, this.options);
        }, this.options.debounce);
    };
}
function debouncedScroll() {
    let timeout;

    return () => {
        clearTimeout(timeout);

        timeout = setTimeout(() => {
            scrollHandler(this.trackedElements, this.options);
        }, this.options.debounce);
    };
}
function debouncedScroll ( ) { let timeout ; return ( ) => { clearTimeout ( timeout ) ; timeout = setTimeout ( ( ) => { scrollHandler ( this . trackedElements , this . options ) ; } , this . options . debounce ) ; } ; }
Debounces the scroll event to avoid performance issues

@return {void}
Debounces the scroll event to avoid performance issues