Fix keyboard behavior during interactive chat swipe-back#2214
Open
vakosta wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ChatControllerediting dismissal while the controller is being interactively popped.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.