mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00: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:
@@ -197,7 +197,7 @@
|
||||
|
||||
if (!link) return;
|
||||
|
||||
link.scrollIntoView({ block: 'center' });
|
||||
link.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user