Skip to content

Commit 0470494

Browse files
fix(mobile): a scroll during post-send keyboard dismissal is left alone
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent df7cf4d commit 0470494

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,8 @@ function ThreadDetailBody(props: ThreadDetailScreenProps) {
11561156
// freeze leaves a phantom bottom inset.
11571157
void KeyboardController.dismiss()
11581158
.then(() => {
1159-
if (scope.aborted) return;
1159+
// A scroll during the dismissal turns end-follow off; leave the reader where they are.
1160+
if (scope.aborted || !endFollowEnabledRef.current) return;
11601161
return scrollMessageToEnd({ animated: !reduceMotion, closeKeyboard: false });
11611162
})
11621163
.catch(() => {

0 commit comments

Comments
 (0)