Skip to content

Commit 5a15a80

Browse files
fix(hooks): eliminate scroll jitter when prepending items at bottom (#2095)
Co-authored-by: Talha Naqvi <naqvitalha@gmail.com>
1 parent 5efb1fc commit 5a15a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recyclerview/hooks/useBoundDetection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function useBoundDetection<T>(
140140
recyclerViewManager.props.maintainVisibleContentPosition
141141
?.animateAutoScrollToBottom ?? true;
142142
scrollViewRef.current?.scrollToEnd({
143-
animated: shouldAnimate,
143+
animated: shouldAnimate && !recyclerViewManager.ignoreScrollEvents,
144144
});
145145
});
146146
}

0 commit comments

Comments
 (0)