src/classes/ParallaxController.js
function _setViewSize() {
        if (hasScrollContainer) {
            const width = viewEl.offsetWidth;
            const height = viewEl.offsetHeight;
            return view.setSize(width, height);
        }

        const html = document.documentElement;
        const width = window.innerWidth || html.clientWidth;
        const height = window.innerHeight || html.clientHeight;

        return view.setSize(width, height);
    }
function _setViewSize() {
        if (hasScrollContainer) {
            const width = viewEl.offsetWidth;
            const height = viewEl.offsetHeight;
            return view.setSize(width, height);
        }

        const html = document.documentElement;
        const width = window.innerWidth || html.clientWidth;
        const height = window.innerHeight || html.clientHeight;

        return view.setSize(width, height);
    }
function _setViewSize ( ) { if ( hasScrollContainer ) { const width = viewEl . offsetWidth ; const height = viewEl . offsetHeight ; return view . setSize ( width , height ) ; } const html = document . documentElement ; const width = window . innerWidth || html . clientWidth ; const height = window . innerHeight || html . clientHeight ; return view . setSize ( width , height ) ; }
Cache the window height.
Cache the window height .