fix(Navbar): active section triggers at 2/3 from bottom

This commit is contained in:
Marco
2026-06-30 22:22:02 +00:00
parent 38da6b503e
commit 155b8b6dae
+1 -1
View File
@@ -65,7 +65,7 @@ export function Navbar() {
entry.isIntersecting ? visible.add(id) : visible.delete(id);
updateActive();
},
{ rootMargin: "-100px 0px -50% 0px" }
{ rootMargin: "-100px 0px -67% 0px" }
);
obs.observe(el);
return obs;