Skip to content

Commit 8ad15eb

Browse files
committed
feat: scrolling uses smooth transition effects by default
1 parent cf25de3 commit 8ad15eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/domUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export function stopPropagation(event: React.SyntheticEvent) {
55
}
66

77
export function scrollIntoView(element: Maybe<Element>) {
8-
element?.scrollIntoView({ inline: 'nearest', block: 'nearest' });
8+
element?.scrollIntoView({ inline: 'nearest', block: 'nearest', behavior: 'smooth' });
99
}

0 commit comments

Comments
 (0)