don't maintain position whenever there are no parents (#4277)
parent
13c08f56ba
commit
76f860dad2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue