Skip to content

Fix keyboard behavior during interactive chat swipe-back#2214

Open
vakosta wants to merge 1 commit into
TelegramMessenger:masterfrom
vakosta:fix/keyboard-swipe-back
Open

Fix keyboard behavior during interactive chat swipe-back#2214
vakosta wants to merge 1 commit into
TelegramMessenger:masterfrom
vakosta:fix/keyboard-swipe-back

Conversation

@vakosta

@vakosta vakosta commented Jun 27, 2026

Copy link
Copy Markdown

Fixes: https://bugs.telegram.org/c/63189

Summary

When the keyboard is open in a chat, starting an interactive swipe-back gesture dismisses the keyboard abruptly instead of keeping it visually synchronized with the navigation transition.

This PR keeps the keyboard attached during interactive chat pops and prevents vertical keyboard-dismiss handling from interfering with the horizontal back-swipe gesture.

Changes

  • Skip the normal ChatController editing dismissal while the controller is being interactively popped.
  • Cancel interactive keyboard gestures when a horizontal navigation pop begins.
  • Apply the delayed keyboard hide layout update without animation after programmatic dismissal, avoiding visible movement after returning to the chat list.

Testing

Tested on a physical iPhone device. Verified that with the keyboard open in a chat, an interactive swipe-back keeps the keyboard transition smooth and does not produce the abrupt jump/dismissal described in the bug report.

Keep the keyboard attached during interactive navigation pops by skipping the normal ChatController editing dismissal while the controller is being interactively popped.

Cancel interactive keyboard gestures when a horizontal pop begins, so vertical jitter in the back-swipe gesture does not trigger keyboard-dismiss tracking during navigation.

Force the delayed keyboard hide layout update after programmatic dismissal to use an immediate transition, avoiding visible movement after returning to the chat list.
@CLAassistant

CLAassistant commented Jun 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants