diff --git a/apps/website/src/components/Services.astro b/apps/website/src/components/Services.astro index 92a22357..84674094 100644 --- a/apps/website/src/components/Services.astro +++ b/apps/website/src/components/Services.astro @@ -186,7 +186,9 @@ for (const service of servicesCollection) { } if (fromTop > endAt + 200 && i === cards.length - 1) { - endDiv.scrollIntoView({ behavior: "smooth" }); + if (!window.navScroll) { + endDiv.scrollIntoView({ behavior: "smooth" }); + } } }); } else { diff --git a/apps/website/src/components/navigation.astro b/apps/website/src/components/navigation.astro index f6f501c0..26fbcaf0 100644 --- a/apps/website/src/components/navigation.astro +++ b/apps/website/src/components/navigation.astro @@ -175,6 +175,11 @@ function handleBookACall() { navMenuToggle.checked = false; + window.navScroll = true; + + setTimeout(() => { + window.navScroll = false; + }, 1500); } window.addEventListener("scroll", onScroll, { passive: true });