Fix: only use scroll-positioning control on thread when looking at replies (#1587)

This commit is contained in:
Paul Frazee 2023-10-03 19:55:28 -07:00 committed by GitHub
parent 588659380a
commit 6598fca79d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -367,7 +367,7 @@ export const PostThread = observer(function PostThread({
data={posts}
initialNumToRender={posts.length}
maintainVisibleContentPosition={
isNative && view.isFromCache
isNative && view.isFromCache && view.isCachedPostAReply
? MAINTAIN_VISIBLE_CONTENT_POSITION
: undefined
}