don't maintain position whenever there are no parents (#4277)

This commit is contained in:
Hailey
2024-05-30 04:36:40 -07:00
committed by GitHub
parent 13c08f56ba
commit 76f860dad2
+3 -1
View File
@@ -440,7 +440,9 @@ export function PostThread({
onEndReachedThreshold={2} onEndReachedThreshold={2}
onScrollToTop={onScrollToTop} onScrollToTop={onScrollToTop}
maintainVisibleContentPosition={ maintainVisibleContentPosition={
isNative ? MAINTAIN_VISIBLE_CONTENT_POSITION : undefined isNative && hasParents
? MAINTAIN_VISIBLE_CONTENT_POSITION
: undefined
} }
// @ts-ignore our .web version only -prf // @ts-ignore our .web version only -prf
desktopFixedHeight desktopFixedHeight