Skip to content

Commit ae407c3

Browse files
authored
doc: add a smooth scrolling effect to the sidebar
PR-URL: #59007 Reviewed-By: Aviv Keller <[email protected]>
1 parent 5e677d6 commit ae407c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)