feat(SW-392): Added tab navigation click tracking

This commit is contained in:
Erik Tiekstra
2025-01-09 14:04:56 +01:00
parent 4bbd02f307
commit c82b6866e7
5 changed files with 25 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ export default function useScrollSpy(
// Make sure only to activate the section when it reaches the top of the viewport.
// A negative value for rootMargin shrinks the root bounding box inward,
// meaning elements will only be considered intersecting when they are further inside the viewport.
rootMargin: "-8% 0% -90% 0%",
rootMargin: "-15% 0% -85% 0%",
threshold: 0,
...options,
}),