Skip to content

Incorrect end event after cancelling predictive back gesture #810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kirillzyusko opened this issue Feb 16, 2025 · 0 comments · Fixed by #814
Closed

Incorrect end event after cancelling predictive back gesture #810

kirillzyusko opened this issue Feb 16, 2025 · 0 comments · Fixed by #814
Assignees
Labels
🤖 android Android specific 🐛 bug Something isn't working 👆 interactive keyboard Anything related to interactive keyboard dismissing repro provided Issue contains reproduction repository/code

Comments

@kirillzyusko
Copy link
Owner

Describe the bug

After cancelling predictive back gesture on Android the animated elements don't have an expected position.

Code snippet

Use "Keyboard Animation" template in example app.

Repo for reproducing

Reproducible in example app.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Keyboard Animation" example
  2. Click on textInput
  3. Start predictive back gesture and cancel it
  4. See the wrong elements positioning

Expected behavior

After cancelling the action circles should be above the keyboard.

Screenshots

telegram-cloud-document-2-5301091482764076304.mp4

Smartphone (please complete the following information):

  • Desktop OS: MacOS 15.2
  • Device: Pixel 7 Pro
  • OS: Android 15
  • RN version: 0.77.0
  • RN architecture: old
  • JS engine: Hermes
  • Library version: 1.16.2

Additional context

Most likely it's a similar problem that I fixed before with InteractiveKeyboardProvider. However it seems like now the gesture is managed by OS itself, and we can not intercept "interactive" events directly from KeyboardAnimationController.

@kirillzyusko kirillzyusko added 🐛 bug Something isn't working 👆 interactive keyboard Anything related to interactive keyboard dismissing 🤖 android Android specific labels Feb 16, 2025
@kirillzyusko kirillzyusko self-assigned this Feb 16, 2025
@kirillzyusko kirillzyusko added the repro provided Issue contains reproduction repository/code label Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Android specific 🐛 bug Something isn't working 👆 interactive keyboard Anything related to interactive keyboard dismissing repro provided Issue contains reproduction repository/code
Projects
None yet
1 participant