From 799c38a8df651344a251e3eb9a0076c64dba87f5 Mon Sep 17 00:00:00 2001 From: Pedro Paulo Vezza Campos Date: Thu, 28 May 2026 07:40:13 -0700 Subject: [PATCH] fix: add smooth scroll to anchor links When users click navbar links like #services, #topics, etc., the page now smoothly scrolls to those sections instead of jumping. --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 466055a..ef700ba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,7 +15,7 @@ function RouteTracker() { useEffect(() => { if (location.hash) { const el = document.getElementById(location.hash.slice(1)); - if (el) el.scrollIntoView(); + if (el) el.scrollIntoView({ behavior: "smooth" }); } else { window.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }