FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: add a smooth scrolling effect to the sidebar · nodejs/node@05a6372 · GitHub

/ node Public

Commit 05a6372

Browse files
authored andcommitted
doc: add a smooth scrolling effect to the sidebar
PR-URL: #59007 Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 99632b1 commit 05a6372

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎doc/api_assets/api.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197

198198
if (!link) return;
199199

200-
link.scrollIntoView({ block: 'center' });
200+
link.scrollIntoView({ behavior: 'smooth', block: 'center' });
201201
}
202202

203203

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL