From 297fc3b855891b3a26f6939b8dbd235dfb1b97bd Mon Sep 17 00:00:00 2001 From: nym21 Date: Fri, 12 Jun 2026 12:25:06 +0200 Subject: [PATCH] website: redesign part 30 --- website_next/learn/scroll-spy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_next/learn/scroll-spy.js b/website_next/learn/scroll-spy.js index a7b4a7ff5..73b770b93 100644 --- a/website_next/learn/scroll-spy.js +++ b/website_next/learn/scroll-spy.js @@ -97,7 +97,6 @@ export function initScrollSpy(main) { /** @param {string} hash */ function navigateToHash(hash) { navigatingTo = hash; - selectHash(hash); scrollLinkIntoNav(getLink(hash), "smooth"); } @@ -122,6 +121,7 @@ export function initScrollSpy(main) { const hash = `#${section.id}`; if (navigatingTo) { + selectHash(hash); if (hash === navigatingTo) navigatingTo = null; return; }