diff --git a/site/src/components/Navigation/index.js b/site/src/components/Navigation/index.js index 5af8e4e..8a18d9b 100644 --- a/site/src/components/Navigation/index.js +++ b/site/src/components/Navigation/index.js @@ -31,7 +31,7 @@ function Navigation({ theme, toggleTheme, showSignUpButton }) { } useEffect(() => { window.addEventListener("scroll", () => - window.pageYOffset > 50 ? setScroll(true) : setScroll(false) +setScroll((window.scrollY || window.pageYOffset) > 50) ); }, []);