@devries-cameron20 / t3code-1 / commits / d6cd7b334e
Fork 0

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

fix(mobile): scroll to end jumps instead of glides when Reduce Motion is on (#16015)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>

Alex Southwell committed Oct 20, 2026 at 07:19 UTC d6cd7b334e722d2c107e88f9ba2cd6c63c3bbaf9
1 file changed +8 -2
apps/mobile/src/features/threads/ThreadDetailScreen.tsx
+8 -2
@@ -81,6 +81,7 @@ import Animated, {
81 useAnimatedReaction,
82 useAnimatedStyle,
83 useDerivedValue,
84 + useReducedMotion,
85 useSharedValue,
86 withTiming,
87 } from "react-native-reanimated";
@@ -726,6 +727,7 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
727 [userInputCoverageApplies],
728 );
729 const { freeze, scrollMessageToEnd } = useKeyboardScrollToEnd({ listRef });
730 + const reduceMotion = useReducedMotion();
731 // Repin timers fire after the render that scheduled them, so they read follow
732 // state from the ref the writers below keep in step with it.
733 const endFollowEnabledRef = useRef(true);
@@ -895,7 +897,10 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
897 ) {
898 return;
899 }
898 - return scrollMessageToEnd({ animated: true, closeKeyboard: false });
900 + return scrollMessageToEnd({
901 + animated: !reduceMotion,
902 + closeKeyboard: false,
903 + });
904 })
905 .catch(() => {
906 if (
@@ -916,6 +921,7 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
921 contentPresentationKind,
922 props.queuedMessages,
923 selectedThreadFeed,
924 + reduceMotion,
925 scrollMessageToEnd,
926 selectedThreadKey,
927 ]);
@@ -981,7 +987,7 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
987
988 const handleScrollToEnd = () => {
989 void Haptics.selectionAsync();
984 - void scrollMessageToEnd({ animated: true, closeKeyboard: false }).catch(() => {
990 + void scrollMessageToEnd({ animated: !reduceMotion, closeKeyboard: false }).catch(() => {
991 freeze.set(false);
992 });
993 };