From 1b571aeaa972752c1f41555b8567d9ed6d7ecb51 Mon Sep 17 00:00:00 2001 From: conico974 Date: Thu, 16 Jul 2026 14:21:01 +0200 Subject: [PATCH] Fix scroll behavior for navigation (#4406) --- packages/gitbook/src/components/hooks/useScrollPage.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/hooks/useScrollPage.ts b/packages/gitbook/src/components/hooks/useScrollPage.ts index a2751b317..bb5363639 100644 --- a/packages/gitbook/src/components/hooks/useScrollPage.ts +++ b/packages/gitbook/src/components/hooks/useScrollPage.ts @@ -85,7 +85,9 @@ function scrollToHash(hash: string) { if (element) { element.scrollIntoView({ block: 'start', - behavior: 'smooth', + // Looks like there is a bug when using smooth scroll on navigation between pages. + // The browser does not scroll, probably some kind of browser optimization. + behavior: 'instant', }); return true; }