You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix this unstable active table-of-contents link calculation shown in
this video:
Clicking "Plugin types", active toc link will be "Option Parsing" or
"File Parsing", depend on previous scroll position.
https://github.com/user-attachments/assets/bfd5c92a-9f11-4c9b-9267-86ae55607541
IntersectionObserver only notifies changed intersections.
We need to track which heading tag currently intersects with viewport.
(I use Set in this pull request)
Use the top-most intersecting heading to make user-clicked toc links
match with active toc links.
---------
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
0 commit comments