Increase navbar sticky line

This commit is contained in:
Leilukin 2024-04-18 22:26:11 +08:00 committed by Helen Chong
parent 3cf30aafdd
commit d2adc35286

View File

@ -60,7 +60,7 @@
window.addEventListener("scroll", () => {
const scrollPosition = window.scrollY || document.documentElement.scrollTop;
const stickyLine = hero.scrollHeight - navbar.scrollHeight;
if (scrollPosition > stickyLine + 55) {
if (scrollPosition > stickyLine + 100) {
navbar.classList.add("nav--sticky");
} else {
navbar.classList.remove("nav--sticky");