Skip to content

Commit 8345cdb

Browse files
fix(mobile): tapping Android message text to close the keyboard keeps the feed end
A tap on selectable message text moves focus from the composer to that TextView, and Android's ScrollView scrolls a newly focused child into view. For a reply taller than the viewport that is a large native scroll with no drag, which Legend List treats as a user scroll, so it stops following the end before the keyboard inset shrinks. Taps on empty space take no focus and kept the end. Turn off scrollsChildToFocus on the feed. It is Android-only, so iOS is unchanged, and text selection still works. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 211f159 commit 8345cdb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3692,6 +3692,9 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
36923692
drawDistance={500}
36933693
keyboardShouldPersistTaps="always"
36943694
keyboardDismissMode="none"
3695+
// Android scrolls a tapped selectable message into view when it takes focus, which reads
3696+
// as a user scroll and drops end following before the keyboard closes.
3697+
scrollsChildToFocus={false}
36953698
keyboardLiftBehavior={props.sendingWithKeyboard ? "persistent" : "whenAtEnd"}
36963699
// Seed the initial viewport before native onLayout.
36973700
{...(viewportHeight > 0 && viewportWidth > 0

0 commit comments

Comments
 (0)