mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 16:06:32 +00:00
fix(viewer): use info.index * windowWidth for onScrollToIndexFailed offset
This commit is contained in:
@@ -743,7 +743,7 @@ function EmailViewer({ route, navigation }: Props) {
|
||||
onMomentumScrollEnd={onMomentumEnd}
|
||||
onScrollToIndexFailed={(info) => {
|
||||
setTimeout(() => {
|
||||
listRef.current?.scrollToOffset({ offset: info.offset, animated: false });
|
||||
listRef.current?.scrollToOffset({ offset: info.index * windowWidth, animated: false });
|
||||
}, 50);
|
||||
}}
|
||||
renderItem={({ item, index }) => (
|
||||
|
||||
Reference in New Issue
Block a user