mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-01 08:45:55 +00:00
getActiveAnchorId derives the active entry from scroll position alone, so on a page short enough that scrollHeight never exceeds window.innerHeight, the answer can never change. Clicking a TOC entry still updates location.hash, but nothing ever picks it up as active. Falls back to the hash when the page can't scroll, honoured only if it names an entry the TOC actually lists. Pages that do scroll are unaffected - this only fires when scroll position can't answer the question at all. Fixes #3087