fix(Navbar): active section triggers at 2/3 from bottom
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user