Skip to content

Commit

Permalink
don't maintain position whenever there are no parents (#4277)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored May 30, 2024
1 parent 13c08f5 commit 76f860d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/com/post-thread/PostThread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76f860d

Please sign in to comment.