diff options
author | Hailey <me@haileyok.com> | 2024-05-30 04:36:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 12:36:40 +0100 |
commit | 76f860dad2c55b17fcbd4caf4d4a9297261b64e3 (patch) | |
tree | 9995501c2d6e03f7aeba5a3e66904263c628c3bd /src | |
parent | 13c08f56ba372c5c7f631c9771a215b82979eb20 (diff) | |
download | voidsky-76f860dad2c55b17fcbd4caf4d4a9297261b64e3.tar.zst |
don't maintain position whenever there are no parents (#4277)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 64ff9cb0f..35028334c 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -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 |