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

zio/stable
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
1 changed files with 3 additions and 1 deletions

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