diff --git a/website/assets/js/main.js b/website/assets/js/main.js index bd21f7995..ed2da747b 100644 --- a/website/assets/js/main.js +++ b/website/assets/js/main.js @@ -14,7 +14,7 @@ const updateNav = () => { const vh = updateVh() const newScrollY = (window.pageYOffset || document.scrollTop) - (document.clientTop || 0) - scrollUp = newScrollY <= scrollY + if (newScrollY != scrollY) scrollUp = newScrollY <= scrollY scrollY = newScrollY if(scrollUp && !(isNaN(scrollY) || scrollY <= vh)) nav.classList.add(fixedClass)