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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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