mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
doc: add a smooth scrolling effect to the sidebar
PR-URL: https://github.com/nodejs/node/pull/59007 Reviewed-By: Aviv Keller <me@aviv.sh>
This commit is contained in:
1 file changed
+1
-1
@@ -197,7 +197,7 @@
|
||||
|
||||
if (!link) return;
|
||||
|
||||
link.scrollIntoView({ block: 'center' });
|
||||
link.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user