Skip to content

[Bug]: iOS: scrolling a long draft in the composer drags the keyboard away #46426

Backlog

Description

@l4kr

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. On iPhone, open a thread and type a draft longer than the composer shows (30 short lines here).
  2. With the keyboard up and the last lines visible, drag down inside the text to scroll back toward the start. Keep dragging until your finger passes the top edge of the keyboard.

Expected behavior

Dragging inside the text scrolls the text and the keyboard stays up.

Actual behavior

The text scrolls until the finger reaches the keyboard. From there the keyboard is dragged down with the finger, the composer slides down with it, and the keyboard closes on release. You end up partway through the draft with the keyboard gone. Getting back to it takes another tap, and the next scroll closes the keyboard again.

The composer shows about four lines and sits directly above the keyboard, so almost any drag long enough to move through a long draft crosses that edge. While the keyboard is being dragged, the conversation above stays put, leaving a gap, then jumps down on release.

7 of 8 drags of 200-260 pt starting near the top of the composer closed the keyboard. The two 110 pt drags that ended above the keyboard scrolled the text and left it up.

Short drag scrolls the draft; longer drags pull the keyboard away

Recording (mp4). Idle time is cut. The first drag stays inside the composer, the next two reach the keyboard.

Likely cause, from reading the source (I haven't tested a change): T3ComposerEditorView.swift L552 sets keyboardDismissMode = .interactive on the composer's own text view, so scrolling the draft is also the keyboard-dismiss gesture.

Impact

Major degradation or frequent failure

Version or commit

main @ f9ebc3e

Environment

iPhone 18 Pro simulator, iOS 27.2, Release build. Short drags that stay inside the composer also scroll normally on a physical iPhone 13 mini (iOS 27.2.1); the drag into the keyboard was not captured there.

Workaround

Scroll with short drags that stay above the keyboard.

Related

#21126 reports the keyboard dismissing and reopening while editing long prompts, without a recording. This is a specific, reproducible case of it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions