mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
fix: improve toc highlighting responsiveness
This commit is contained in:
parent
7c6172e0ae
commit
3da7a083c8
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ function setupTOCHighlight() {
|
||||||
|
|
||||||
// Create the intersection observer
|
// Create the intersection observer
|
||||||
const headingObserver = new IntersectionObserver(intersectionCallback, {
|
const headingObserver = new IntersectionObserver(intersectionCallback, {
|
||||||
rootMargin: '-5% 0% -85% 0%',
|
rootMargin: '0% 0% -66% 0%',
|
||||||
threshold: [0.4],
|
threshold: [0.4],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue