docs-matrix-spec/changelogs/internal/newsfragments
Kévin Commaille b1f66d1b71
Improve the JS script to highlight the current ToC entry (#1991)
The code relied on an IntersectionOberver, so the ToC was only updated when a heading was in the viewport.
It meant that if we jumped to a part of the text that has no heading, the ToC would still point to the old entry.

The new code looks for the correct heading when the view is scrolled so the correct entry is always selected.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-11-12 22:53:46 +00:00
..
.gitignore Add an "internal changes" changelog section (#1194) 2022-08-02 19:48:35 -06:00
1967.clarification Sort VoIP events semantically (#1967) 2024-10-15 17:22:40 +01:00
1969.clarification Enforce consistent vertical spacing between paragraphs in endpoint definitions (#1969) 2024-10-29 15:22:15 +00:00
1970.clarification Remove boxes/added-in-paragraph shortcode (#1970) 2024-10-14 17:57:33 +01:00
1971.clarification Remove withVersioning parameter of rver-fragment shortcode. (#1971) 2024-10-14 18:00:49 +01:00
1972.clarification Remove span element from added-in and changed-in shortcodes (#1972) 2024-10-14 18:04:36 +01:00
1975.clarification Always use % delimiter for added-in and changed-in shortcodes (#1975) 2024-10-30 10:09:38 +00:00
1976.clarification Remove CSS workaround for scroll-anchoring (#1976) 2024-10-29 22:58:53 +00:00
1977.clarification Rename custom-formats.yaml to string-formats.yaml (#1977) 2024-10-30 22:30:31 +00:00
1985.clarification Rename .htmltest.yaml to .htmltest.yml (#1985) 2024-10-28 14:21:20 +00:00
1991.clarification Improve the JS script to highlight the current ToC entry (#1991) 2024-11-12 22:53:46 +00:00