mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-08 09:38:14 -07:00
docs: update generated docs
This commit is contained in:
@@ -105,6 +105,7 @@ export function initScrollSpy(main) {
|
||||
const viewportTop = getViewportTop();
|
||||
|
||||
for (const section of sections) {
|
||||
if (!section.getClientRects().length) continue;
|
||||
if (section.getBoundingClientRect().top > viewportTop) break;
|
||||
|
||||
currentSection = section;
|
||||
@@ -149,6 +150,7 @@ export function initScrollSpy(main) {
|
||||
alignNavToTop = true;
|
||||
scheduleUpdate();
|
||||
});
|
||||
main.addEventListener("sectiontoggle", scheduleUpdate);
|
||||
scheduleUpdate();
|
||||
return navigateToHash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user