fix: improve toc highlighting responsiveness

This commit is contained in:
radishzzz 2025-03-31 16:32:23 +01:00
parent 7c6172e0ae
commit 3da7a083c8

View file

@ -201,7 +201,7 @@ function setupTOCHighlight() {
// Create the intersection observer
const headingObserver = new IntersectionObserver(intersectionCallback, {
rootMargin: '-5% 0% -85% 0%',
rootMargin: '0% 0% -66% 0%',
threshold: [0.4],
})