From 76f860dad2c55b17fcbd4caf4d4a9297261b64e3 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 30 May 2024 04:36:40 -0700 Subject: [PATCH] don't maintain position whenever there are no parents (#4277) --- src/view/com/post-thread/PostThread.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 64ff9cb0..35028334 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -440,7 +440,9 @@ export function PostThread({ onEndReachedThreshold={2} onScrollToTop={onScrollToTop} maintainVisibleContentPosition={ - isNative ? MAINTAIN_VISIBLE_CONTENT_POSITION : undefined + isNative && hasParents + ? MAINTAIN_VISIBLE_CONTENT_POSITION + : undefined } // @ts-ignore our .web version only -prf desktopFixedHeight