Skip to content

Commit eafe0b1

Browse files
bteaavivkeller
authored andcommitted
doc: add a smooth scrolling effect to the sidebar
1 parent a385bb1 commit eafe0b1

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)