Skip to content

Commit 4128eea

Browse files
committed
feat: smooth scroll
1 parent 991aefa commit 4128eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/Code/FileTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const { toggleDir, isExpanded, autoExpandAncestors } = useFileTreeState(props.ba
3939
const scrollIntoView = () => {
4040
const el = treeRoot.value?.querySelector('[aria-current="true"]') as HTMLElement
4141
if (el) {
42-
el.scrollIntoView({ block: 'center' })
42+
el.scrollIntoView({ block: 'center', behavior: 'smooth' })
4343
}
4444
}
4545

0 commit comments

Comments
 (0)