@devries-cameron20 / t3code Mirror · read-only / commits / 1c7d059f55
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 17:45 UTC

fix: scrolling up during a running thread no longer snaps back to the bottom (#5566)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Theo Browne committed Aug 7, 2026 at 00:32 UTC 1c7d059f550a53dd94d5b9802640ecd11b759d1a
5 files changed +258 -35
apps/mobile/src/features/threads/ThreadFeed.tsx
+69 -2
@@ -1335,6 +1335,24 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1335 );
1336 const [viewportHeight, setViewportHeight] = useState(0);
1337 const [disclosureToggleSettling, setDisclosureToggleSettling] = useState(false);
1338 + // Live-follow latch. LegendList's maintainScrollAtEnd alone re-pins the feed
1339 + // whenever the viewport drifts back inside its geometric threshold, which
1340 + // yanked users off history they were reading every time a stream chunk grew
1341 + // a row. Follow breaks when the user scrolls up and away, and re-arms only
1342 + // when the list actually returns to the end (or on send / thread switch).
1343 + const [endFollowEnabled, setEndFollowEnabled] = useState(true);
1344 + const endFollowEnabledRef = useRef(true);
1345 + // A "user scroll session" spans from drag start through the end of its
1346 + // momentum; only motion inside a session can break follow, so MVCP
1347 + // compensations and programmatic scrolls never strand a follower.
1348 + const userScrollSessionRef = useRef(false);
1349 + const setEndFollow = useCallback((enabled: boolean) => {
1350 + if (endFollowEnabledRef.current === enabled) {
1351 + return;
1352 + }
1353 + endFollowEnabledRef.current = enabled;
1354 + setEndFollowEnabled(enabled);
1355 + }, []);
1356 const [interactionState, setInteractionState] = useState<{
1357 readonly copiedRowId: string | null;
1358 readonly expandedWorkGroups: Record<string, boolean>;
@@ -1454,9 +1472,41 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1472 const { contentOffset, contentSize, layoutMeasurement } = event.nativeEvent;
1473 nearListEnd.value =
1474 contentSize.height - layoutMeasurement.height - contentOffset.y < layoutMeasurement.height;
1475 +
1476 + // Latch bookkeeping. LegendList recomputes its inset-aware end distance
1477 + // before invoking this handler, so getState() is current. Returning to
1478 + // the end re-arms follow no matter who scrolled (the user, or our own
1479 + // scroll-to-end); moving away breaks it only during a user-initiated
1480 + // scroll session, so MVCP compensations and programmatic repositioning
1481 + // can never strand a follower.
1482 + const listState = props.listRef.current?.getState();
1483 + if (listState) {
1484 + if (listState.isWithinMaintainScrollAtEndThreshold) {
1485 + setEndFollow(true);
1486 + } else if (userScrollSessionRef.current) {
1487 + setEndFollow(false);
1488 + }
1489 + }
1490 },
1458 - [reportHeaderMaterialVisibility, anchorTopInset, nearListEnd],
1491 + [reportHeaderMaterialVisibility, anchorTopInset, nearListEnd, props.listRef, setEndFollow],
1492 );
1493 + const handleScrollBeginDrag = useCallback(() => {
1494 + userScrollSessionRef.current = true;
1495 + }, []);
1496 + // The session must survive past finger-lift so momentum that carries the
1497 + // user away from the end still breaks follow; a drag released with no
1498 + // momentum ends its session at the release itself, otherwise at momentum
1499 + // end. Leaving a session open would let a later animated maintain-scroll
1500 + // read as user motion and break follow spuriously.
1501 + const handleScrollEndDrag = useCallback((event: NativeSyntheticEvent<NativeScrollEvent>) => {
1502 + const velocity = event.nativeEvent.velocity?.y ?? 0;
1503 + if (Math.abs(velocity) < 0.05) {
1504 + userScrollSessionRef.current = false;
1505 + }
1506 + }, []);
1507 + const handleMomentumScrollEnd = useCallback(() => {
1508 + userScrollSessionRef.current = false;
1509 + }, []);
1510
1511 // Gated variant of the 180ms feed layout slide. Instant while browsing
1512 // history: maintainVisibleContentPosition compensates the scroll offset in
@@ -1496,6 +1546,20 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1546 reportHeaderMaterialVisibility(false);
1547 }, [props.threadId, reportHeaderMaterialVisibility]);
1548
1549 + // A thread switch opens pinned to the end; a send explicitly returns to the
1550 + // live edge (ThreadDetailScreen scrolls the new message into place). Both
1551 + // re-arm follow regardless of where the user had scrolled before.
1552 + useEffect(() => {
1553 + userScrollSessionRef.current = false;
1554 + setEndFollow(true);
1555 + }, [props.threadId, setEndFollow]);
1556 + useEffect(() => {
1557 + if (props.anchorMessageId !== null) {
1558 + userScrollSessionRef.current = false;
1559 + setEndFollow(true);
1560 + }
1561 + }, [props.anchorMessageId, setEndFollow]);
1562 +
1563 const expandedWorkGroupIds = useMemo(() => {
1564 const ids = new Set<string>();
1565 for (const [groupId, expanded] of Object.entries(expandedWorkGroups)) {
@@ -1847,7 +1911,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1911 // anchor scrolls also lets it correct a scroll that landed on a
1912 // stale end target once the anchor row finishes measuring.
1913 maintainScrollAtEnd={
1850 - disclosureToggleSettling
1914 + disclosureToggleSettling || !endFollowEnabled
1915 ? false
1916 : {
1917 animated: true,
@@ -1896,6 +1960,9 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
1960 alignItemsAtEnd
1961 initialScrollAtEnd
1962 onScroll={handleScroll}
1963 + onScrollBeginDrag={handleScrollBeginDrag}
1964 + onScrollEndDrag={handleScrollEndDrag}
1965 + onMomentumScrollEnd={handleMomentumScrollEnd}
1966 scrollEventThrottle={16}
1967 ListHeaderComponent={
1968 <>
apps/web/src/components/ChatView.tsx
+119 -24
@@ -244,6 +244,7 @@ import { DraftHeroHeadline } from "./chat/DraftHeroHeadline";
244 import { ExpandedImageDialog } from "./chat/ExpandedImageDialog";
245 import { PullRequestThreadDialog } from "./PullRequestThreadDialog";
246 import { MessagesTimeline } from "./chat/MessagesTimeline";
247 +import { resolveTimelineIsAtEnd } from "./chat/MessagesTimeline.logic";
248 import { ChatHeader } from "./chat/ChatHeader";
249 import { PanelLayoutControls, RightPanelMaximizeControl } from "./chat/PanelLayoutControls";
250 import { type ExpandedImagePreview } from "./chat/ExpandedImagePreview";
@@ -3567,6 +3568,10 @@ function ChatViewContent(props: ChatViewProps) {
3568 new Debouncer(() => setShowScrollToBottom(true), { wait: 150 }),
3569 );
3570 const timelineScrollModeRef = useRef<TimelineScrollMode>("following-end");
3571 + // State mirror of the follow mode refs. LegendList's maintainScrollAtEnd
3572 + // re-pins on its own (independent of the refs), so the timeline needs a
3573 + // render-visible flag to switch it off once the user scrolls away.
3574 + const [timelineLiveFollowEnabled, setTimelineLiveFollowEnabled] = useState(true);
3575 const pendingTimelineAnchorRef = useRef<MessageId | null>(null);
3576 const positionedTimelineAnchorRef = useRef<MessageId | null>(null);
3577 const settledTimelineAnchorRef = useRef<MessageId | null>(null);
@@ -3583,6 +3588,7 @@ function ChatViewContent(props: ChatViewProps) {
3588 anchorUserScrollGenerationRef.current += 1;
3589 timelineScrollModeRef.current = "free-scrolling";
3590 liveFollowUserScrollGenerationRef.current = null;
3591 + setTimelineLiveFollowEnabled(false);
3592 pendingTimelineAnchorRef.current = null;
3593 positionedTimelineAnchorRef.current = null;
3594 settledTimelineAnchorRef.current = null;
@@ -3654,6 +3660,7 @@ function ChatViewContent(props: ChatViewProps) {
3660 isAtEndRef.current = true;
3661 timelineScrollModeRef.current = "following-end";
3662 liveFollowUserScrollGenerationRef.current = anchorUserScrollGenerationRef.current;
3663 + setTimelineLiveFollowEnabled(true);
3664 pendingTimelineAnchorRef.current = null;
3665 activeTimelineAnchorIndexRef.current = null;
3666 showScrollDebouncer.current.cancel();
@@ -3662,37 +3669,120 @@ function ChatViewContent(props: ChatViewProps) {
3669 }, []);
3670 useEffect(() => {
3671 let removeListeners: (() => void) | null = null;
3665 - const frame = requestAnimationFrame(() => {
3666 - const scrollNode = legendListRef.current?.getScrollableNode();
3667 - if (!scrollNode) {
3668 - return;
3669 - }
3670 - const handleManualNavigation = () => {
3671 - cancelTimelineLiveFollowForUserNavigationRef.current();
3672 - };
3673 - scrollNode.addEventListener("wheel", handleManualNavigation, {
3674 - passive: true,
3675 - });
3676 - scrollNode.addEventListener("touchmove", handleManualNavigation, {
3677 - passive: true,
3678 - });
3679 - scrollNode.addEventListener("pointerdown", handleManualNavigation, {
3680 - passive: true,
3672 + let frame: number | null = null;
3673 + const attach = (remainingAttempts: number) => {
3674 + frame = requestAnimationFrame(() => {
3675 + frame = null;
3676 + const scrollNode = legendListRef.current?.getScrollableNode();
3677 + if (!scrollNode) {
3678 + // The list may not have mounted on the first frame after a thread
3679 + // switch — without a retry the opt-out listeners never attach and
3680 + // live-follow becomes impossible to escape for the whole thread.
3681 + if (remainingAttempts > 0) {
3682 + attach(remainingAttempts - 1);
3683 + }
3684 + return;
3685 + }
3686 + const handleManualNavigation = () => {
3687 + cancelTimelineLiveFollowForUserNavigationRef.current();
3688 + };
3689 + // The gestures below must only break follow when they can actually
3690 + // move the viewport away from the live edge. Follow now gates
3691 + // LegendList's maintainScrollAtEnd, so a spurious break while pinned
3692 + // at the end produces no scroll event, never re-arms, and streaming
3693 + // silently stops following. Underflowing content can't scroll at all,
3694 + // so nothing there should break follow.
3695 + const contentScrollsUp = () => timelineRealContentOverflowsViewport();
3696 + // The follow re-arm band, not the strict flag: streaming growth makes
3697 + // isAtEnd flicker false for a frame before the follow scroll catches
3698 + // up, and a gesture landing in that window while still pinned would
3699 + // otherwise break follow with no scroll event left to re-arm it.
3700 + const viewportIsAwayFromEnd = () =>
3701 + resolveTimelineIsAtEnd(legendListRef.current?.getState(), composerOverlayHeight) ===
3702 + false;
3703 + // Only an upward wheel is a navigation intent; wheeling down while
3704 + // following either does nothing (at the end) or moves toward it.
3705 + const handleWheel = (event: WheelEvent) => {
3706 + if (event.deltaY < 0 && contentScrollsUp()) {
3707 + handleManualNavigation();
3708 + }
3709 + };
3710 + // Touch direction isn't observable here (touchmove fires on any
3711 + // finger motion, scrolling or not), so break only once the drag has
3712 + // actually carried the viewport out of the end band — an upward flick
3713 + // gets there within its first few events and later touchmoves break.
3714 + const handleTouchMove = () => {
3715 + if (viewportIsAwayFromEnd()) {
3716 + handleManualNavigation();
3717 + }
3718 + };
3719 + // Scrollbar drags produce no wheel/touch events; they are the only
3720 + // pointerdowns whose target is the scroll node itself rather than a
3721 + // message row. Content clicks break follow only away from the end
3722 + // (reading or selecting up there must hold position); clicking near
3723 + // the live edge keeps following.
3724 + const handlePointerDown = (event: PointerEvent) => {
3725 + if (event.target === scrollNode) {
3726 + if (contentScrollsUp()) {
3727 + handleManualNavigation();
3728 + }
3729 + return;
3730 + }
3731 + if (viewportIsAwayFromEnd()) {
3732 + handleManualNavigation();
3733 + }
3734 + };
3735 + // Keyboard scrolling (PageUp/Home/ArrowUp) bypasses wheel and
3736 + // pointer events entirely; without this the timeline yanks back to
3737 + // the end on the next stream chunk.
3738 + const handleKeyDown = (event: KeyboardEvent) => {
3739 + switch (event.key) {
3740 + case "PageUp":
3741 + case "Home":
3742 + case "ArrowUp":
3743 + if (contentScrollsUp()) {
3744 + handleManualNavigation();
3745 + }
3746 + break;
3747 + default:
3748 + break;
3749 + }
3750 + };
3751 + scrollNode.addEventListener("wheel", handleWheel, {
3752 + passive: true,
3753 + });
3754 + scrollNode.addEventListener("touchmove", handleTouchMove, {
3755 + passive: true,
3756 + });
3757 + scrollNode.addEventListener("pointerdown", handlePointerDown, {
3758 + passive: true,
3759 + });
3760 + scrollNode.addEventListener("keydown", handleKeyDown);
3761 + removeListeners = () => {
3762 + scrollNode.removeEventListener("wheel", handleWheel);
3763 + scrollNode.removeEventListener("touchmove", handleTouchMove);
3764 + scrollNode.removeEventListener("pointerdown", handlePointerDown);
3765 + scrollNode.removeEventListener("keydown", handleKeyDown);
3766 + };
3767 });
3682 - removeListeners = () => {
3683 - scrollNode.removeEventListener("wheel", handleManualNavigation);
3684 - scrollNode.removeEventListener("touchmove", handleManualNavigation);
3685 - scrollNode.removeEventListener("pointerdown", handleManualNavigation);
3686 - };
3687 - });
3768 + };
3769 + attach(12);
3770
3771 return () => {
3690 - cancelAnimationFrame(frame);
3772 + if (frame !== null) {
3773 + cancelAnimationFrame(frame);
3774 + }
3775 removeListeners?.();
3776 };
3693 - }, [activeThread?.id]);
3777 + }, [activeThread?.id, composerOverlayHeight, timelineRealContentOverflowsViewport]);
3778
3779 const onTimelineAnchorReady = useCallback((messageId: MessageId, anchorIndex: number) => {
3780 + // Anchored-end space can be remeasured when the turn completes. Once the
3781 + // user has scrolled away (or returned to ordinary end-following), that
3782 + // remeasurement must not restart the send-time anchor positioning.
3783 + if (timelineScrollModeRef.current !== "anchoring-new-turn") {
3784 + return;
3785 + }
3786 if (pendingTimelineAnchorRef.current === messageId) {
3787 pendingTimelineAnchorRef.current = null;
3788 }
@@ -3798,6 +3888,7 @@ function ChatViewContent(props: ChatViewProps) {
3888 if (isAtEnd) {
3889 timelineScrollModeRef.current = "following-end";
3890 liveFollowUserScrollGenerationRef.current = anchorUserScrollGenerationRef.current;
3891 + setTimelineLiveFollowEnabled(true);
3892 showScrollDebouncer.current.cancel();
3893 setShowScrollToBottom(false);
3894 } else {
@@ -3878,6 +3969,7 @@ function ChatViewContent(props: ChatViewProps) {
3969 isAtEndRef.current = true;
3970 timelineScrollModeRef.current = "following-end";
3971 liveFollowUserScrollGenerationRef.current = anchorUserScrollGenerationRef.current;
3972 + setTimelineLiveFollowEnabled(true);
3973 pendingTimelineAnchorRef.current = null;
3974 positionedTimelineAnchorRef.current = null;
3975 settledTimelineAnchorRef.current = null;
@@ -4945,6 +5037,7 @@ function ChatViewContent(props: ChatViewProps) {
5037 isAtEndRef.current = true;
5038 timelineScrollModeRef.current = "anchoring-new-turn";
5039 liveFollowUserScrollGenerationRef.current = anchorUserScrollGenerationRef.current;
5040 + setTimelineLiveFollowEnabled(true);
5041 pendingTimelineAnchorRef.current = messageIdForSend;
5042 activeTimelineAnchorIndexRef.current = null;
5043 showScrollDebouncer.current.cancel();
@@ -5389,6 +5482,7 @@ function ChatViewContent(props: ChatViewProps) {
5482 isAtEndRef.current = true;
5483 timelineScrollModeRef.current = "anchoring-new-turn";
5484 liveFollowUserScrollGenerationRef.current = anchorUserScrollGenerationRef.current;
5485 + setTimelineLiveFollowEnabled(true);
5486 pendingTimelineAnchorRef.current = messageIdForSend;
5487 activeTimelineAnchorIndexRef.current = null;
5488 showScrollDebouncer.current.cancel();
@@ -6055,6 +6149,7 @@ function ChatViewContent(props: ChatViewProps) {
6149 onAnchorReady={onTimelineAnchorReady}
6150 onAnchorSizeChanged={onTimelineAnchorSizeChanged}
6151 contentInsetEndAdjustment={composerOverlayHeight}
6152 + liveFollowEnabled={timelineLiveFollowEnabled}
6153 onIsAtEndChange={onIsAtEndChange}
6154 onManualNavigation={cancelTimelineLiveFollowForUserNavigation}
6155 hideEmptyPlaceholder={isDraftHeroState || threadDetailLoading}
apps/web/src/components/chat/MessagesTimeline.logic.ts
+29 -3
@@ -18,11 +18,37 @@ export const TIMELINE_MINIMAP_PERSISTENT_GUTTER = 48;
18
19 export interface TimelineEndState {
20 readonly isAtEnd?: boolean;
21 - readonly isNearEnd?: boolean;
21 + readonly contentLength?: number;
22 + readonly scroll?: number;
23 + readonly scrollLength?: number;
24 }
25
24 -export function resolveTimelineIsAtEnd(state: TimelineEndState | undefined): boolean | undefined {
25 - return state?.isNearEnd ?? state?.isAtEnd;
26 +/**
27 + * Follow re-arm band above the hard bottom. Strict on purpose: LegendList's
28 + * isNearEnd fires within half a viewport, which re-armed live-follow while the
29 + * user was reading history and yanked them back down on the next stream chunk.
30 + * A small pixel band (instead of the 1px isAtEnd epsilon alone) keeps re-arming
31 + * reliable while streaming content is still growing under the viewport.
32 + */
33 +export const TIMELINE_FOLLOW_REARM_THRESHOLD_PX = 40;
34 +
35 +export function resolveTimelineIsAtEnd(
36 + state: TimelineEndState | undefined,
37 + endInset = 0,
38 +): boolean | undefined {
39 + if (!state) {
40 + return undefined;
41 + }
42 + if (state.isAtEnd) {
43 + return true;
44 + }
45 + const { contentLength, scroll, scrollLength } = state;
46 + if (contentLength === undefined || scroll === undefined || scrollLength === undefined) {
47 + return state.isAtEnd;
48 + }
49 + // contentLength includes the end inset (composer overlay), so subtract it to
50 + // measure the distance to the real content bottom.
51 + return contentLength - scroll - scrollLength - endInset <= TIMELINE_FOLLOW_REARM_THRESHOLD_PX;
52 }
53
54 export function resolveTimelineMinimapHeightStyle(itemCount: number): string {
apps/web/src/components/chat/MessagesTimeline.test.tsx
+30 -3
@@ -194,6 +194,7 @@ function buildProps() {
194 onAnchorReady: () => {},
195 onAnchorSizeChanged: () => {},
196 contentInsetEndAdjustment: 0,
197 + liveFollowEnabled: true,
198 onIsAtEndChange: () => {},
199 onManualNavigation: () => {},
200 };
@@ -296,7 +297,7 @@ describe("MessagesTimeline", () => {
297 expect(markup).toContain("1 changed file");
298 });
299
299 - it("uses LegendList isNearEnd when deciding whether the live edge is visible", async () => {
300 + it("treats only the strict list end as the live edge", async () => {
301 const {
302 resolveTimelineIsAtEnd,
303 resolveTimelineMinimapHasPersistentGutter,
@@ -307,10 +308,36 @@ describe("MessagesTimeline", () => {
308 resolveTimelineMinimapTopPercent,
309 } = await import("./MessagesTimeline.logic");
310
310 - expect(resolveTimelineIsAtEnd({ isNearEnd: true, isAtEnd: false })).toBe(true);
311 - expect(resolveTimelineIsAtEnd({ isNearEnd: false, isAtEnd: true })).toBe(false);
311 expect(resolveTimelineIsAtEnd({ isAtEnd: true })).toBe(true);
312 expect(resolveTimelineIsAtEnd(undefined)).toBeUndefined();
313 + // Within the pixel band above the content bottom counts as the end...
314 + expect(
315 + resolveTimelineIsAtEnd({
316 + isAtEnd: false,
317 + contentLength: 2000,
318 + scroll: 1170,
319 + scrollLength: 800,
320 + }),
321 + ).toBe(true);
322 + // ...but half a viewport up (LegendList's isNearEnd territory) does not.
323 + expect(
324 + resolveTimelineIsAtEnd({
325 + isAtEnd: false,
326 + contentLength: 2000,
327 + scroll: 900,
328 + scrollLength: 800,
329 + }),
330 + ).toBe(false);
331 + // The composer inset is part of contentLength and must not count as
332 + // distance-to-end.
333 + expect(
334 + resolveTimelineIsAtEnd(
335 + { isAtEnd: false, contentLength: 2100, scroll: 1170, scrollLength: 800 },
336 + 100,
337 + ),
338 + ).toBe(true);
339 + // Geometry missing (older state shape): fall back to the strict flag.
340 + expect(resolveTimelineIsAtEnd({ isAtEnd: false })).toBe(false);
341
342 expect(resolveTimelineMinimapHeightStyle(5)).toBe("min(32px, calc(100vh - 18rem))");
343 expect(resolveTimelineMinimapTopPercent(2, 5)).toBe(50);
apps/web/src/components/chat/MessagesTimeline.tsx
+11 -3
@@ -219,6 +219,13 @@ interface MessagesTimelineProps {
219 onAnchorReady: (messageId: MessageId, anchorIndex: number) => void;
220 onAnchorSizeChanged: (messageId: MessageId, size: number) => void;
221 contentInsetEndAdjustment: number;
222 + /**
223 + * Whether the timeline should keep pinning to the live edge as content
224 + * grows. Off while the user is reading history; LegendList's own
225 + * maintainScrollAtEnd would otherwise re-pin regardless of ChatView's
226 + * scroll-mode refs whenever the user drifts near the bottom.
227 + */
228 + liveFollowEnabled: boolean;
229 onIsAtEndChange: (isAtEnd: boolean) => void;
230 onManualNavigation: () => void;
231 hideEmptyPlaceholder?: boolean;
@@ -258,6 +265,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
265 onAnchorReady,
266 onAnchorSizeChanged,
267 contentInsetEndAdjustment,
268 + liveFollowEnabled,
269 onIsAtEndChange,
270 onManualNavigation,
271 hideEmptyPlaceholder = false,
@@ -401,7 +409,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
409
410 const handleScroll = useCallback(() => {
411 const state = listRef.current?.getState?.();
404 - const isAtEnd = resolveTimelineIsAtEnd(state);
412 + const isAtEnd = resolveTimelineIsAtEnd(state, contentInsetEndAdjustment);
413 if (isAtEnd !== undefined) {
414 onIsAtEndChange(isAtEnd);
415 }
@@ -427,7 +435,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
435
436 strip.dataset.inView = inView ? "true" : "false";
437 }
430 - }, [listRef, minimapItems, minimapStripMap, onIsAtEndChange]);
438 + }, [contentInsetEndAdjustment, listRef, minimapItems, minimapStripMap, onIsAtEndChange]);
439
440 useEffect(() => {
441 const frame = requestAnimationFrame(handleScroll);
@@ -543,7 +551,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
551 {...(anchoredEndSpace ? { anchoredEndSpace } : {})}
552 contentInsetEndAdjustment={contentInsetEndAdjustment}
553 maintainScrollAtEnd={
546 - anchoredEndSpace
554 + anchoredEndSpace || !liveFollowEnabled
555 ? false
556 : {
557 animated: false,