The Intersection Observer is a great API. But it may not be the one-size-fits-all solution to highlight TOC/sidebar links as it makes hard if not impossible to: Highlight any clicked link even if it ...
When the current chapter item in the sidebar went out of the window, if you navigated to another chapter, mdbook computed the scroll-to position wrong, and scrolled to a wrong place.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results