From ae407c310989913f3faf86019b02fdbca217e333 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 24 Dec 2025 11:04:57 +0800 Subject: [PATCH] doc: add a smooth scrolling effect to the sidebar PR-URL: https://github.com/nodejs/node/pull/59007 Reviewed-By: Aviv Keller --- doc/api_assets/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api_assets/api.js b/doc/api_assets/api.js index a3e479ed956..f5183202ce3 100644 --- a/doc/api_assets/api.js +++ b/doc/api_assets/api.js @@ -197,7 +197,7 @@ if (!link) return; - link.scrollIntoView({ block: 'center' }); + link.scrollIntoView({ behavior: 'smooth', block: 'center' }); }