mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +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
|
||||
const headingObserver = new IntersectionObserver(intersectionCallback, {
|
||||
rootMargin: '-5% 0% -85% 0%',
|
||||
rootMargin: '0% 0% -66% 0%',
|
||||
threshold: [0.4],
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue