Skip to content

[pull] master from ruby:master#73

Merged
pull[bot] merged 2 commits intosysfce2:masterfrom
ruby:master
Nov 18, 2025
Merged

[pull] master from ruby:master#73
pull[bot] merged 2 commits intosysfce2:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Nov 18, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

st0012 and others added 2 commits November 18, 2025 17:22
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>
@pull pull bot locked and limited conversation to collaborators Nov 18, 2025
@pull pull bot added the ⤵️ pull label Nov 18, 2025
@pull pull bot merged commit 08123c7 into sysfce2:master Nov 18, 2025
4 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants