diff options
author | dan <dan.abramov@gmail.com> | 2024-05-12 18:30:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 10:30:00 -0700 |
commit | 4458b031732149d6f9c107582b9e4ec343385518 (patch) | |
tree | a6f970b792a2fb96b966b84f8c26b6408ab9acc7 /src/view/com/util/List.web.tsx | |
parent | 97750c4aabbcf221561d1d373cb2238627411be2 (diff) | |
download | voidsky-4458b031732149d6f9c107582b9e4ec343385518.tar.zst |
FeedFeedback fixes (#3968)
* Lower seen threshold to 1.5s * Send feedContext for replies * Use a simpler and more reliable feedContext fallback --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/util/List.web.tsx')
-rw-r--r-- | src/view/com/util/List.web.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/util/List.web.tsx b/src/view/com/util/List.web.tsx index a64f7acf3..df097bafa 100644 --- a/src/view/com/util/List.web.tsx +++ b/src/view/com/util/List.web.tsx @@ -27,7 +27,7 @@ export type ListProps<ItemT> = Omit< } export type ListRef = React.MutableRefObject<any | null> // TODO: Better types. -const ON_ITEM_SEEN_WAIT_DURATION = 2e3 // post must be "seen" 2 seconds before capturing +const ON_ITEM_SEEN_WAIT_DURATION = 1.5e3 // when we consider post to be "seen" const ON_ITEM_SEEN_INTERSECTION_OPTS = { rootMargin: '-200px 0px -200px 0px', } // post must be 200px visible to be "seen" |