Skip to content

Commit 902999d

Browse files
authored
feat(legacy-html): add a smooth scrolling effect to the sidebar (#528)
1 parent 776dd0b commit 902999d

File tree

1 file changed

+1
-1
lines changed
  • src/generators/legacy-html/assets

1 file changed

+1
-1
lines changed

src/generators/legacy-html/assets/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function setupSidebarScroll() {
214214
return;
215215
}
216216

217-
link.scrollIntoView({ block: 'center' });
217+
link.scrollIntoView({ behavior: 'smooth', block: 'center' });
218218
}
219219

220220
// Initialize either on DOMContentLoaded or immediately if already loaded

0 commit comments

Comments
 (0)