From 465eeffd1e1af1ff3a0b982cac295801432cd0ec Mon Sep 17 00:00:00 2001 From: arnauda-gh <59512940+arnauda-gh@users.noreply.github.com> Date: Fri, 9 Oct 2026 09:05:27 +0200 Subject: [PATCH] fix(viewer): use info.index * windowWidth for onScrollToIndexFailed offset --- src/screens/EmailThreadScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/EmailThreadScreen.tsx b/src/screens/EmailThreadScreen.tsx index 851d965b..03aa7996 100644 --- a/src/screens/EmailThreadScreen.tsx +++ b/src/screens/EmailThreadScreen.tsx @@ -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 }) => (