Skip to content

Commit f198345

Browse files
committed
Scrolling with auto works a bit better for now. Smooth is nice because
it brings attention to the list for users.
1 parent aa5d60d commit f198345

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/components/shared/Entity/Details/History/PublicationList.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function PublicationList() {
3838

3939
useEffect(() => {
4040
if (!stopScrollingIntoView.current && scrollToTarget.current) {
41-
scrollIntoView(scrollToTarget);
41+
scrollIntoView(scrollToTarget, {
42+
behavior: 'auto',
43+
});
4244
stopScrollingIntoView.current = true;
4345
}
4446
});

0 commit comments

Comments
 (0)