diff --git a/src/scripts/modules/scrollControl/index.ts b/src/scripts/modules/scrollControl/index.ts index 7f7edbf5..4f53f370 100644 --- a/src/scripts/modules/scrollControl/index.ts +++ b/src/scripts/modules/scrollControl/index.ts @@ -27,7 +27,7 @@ function scrollCallback() { } } - if ( Ypos >= ( document.body.scrollHeight - window.innerHeight ) / 2 ) { + if ( Ypos >= window.innerHeight ) { document.body.classList.remove( 'above-the-fold' ); } else { document.body.classList.add( 'above-the-fold' );