-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
In Android touchMove is cancelled when intercepted by native gesture from child #44594
Comments
I don't think a reproducer is necessary in this example, but I can create it on further request. |
Please do. It will save us time when we get to investigating this issue |
Have added a reproducer: https://github.com/AndriusZal/44594-Reproducer
I don't mind to providing the fix myself, I just might need some backstory why this approach is chosen. |
My comment maybe unrelated to the above issue but I have a doubt regarding the usage of |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Description
Hey! I'm not sure if you can call this a bug, but I might be missing some of the functionality in touch event handling. Currently, on Android
touchMove
event seems to be cancelled when native gesture is recognized and intercepted in child component. While going through your source code, I have noticed that it is done intentionally inJSTouchDispatcher.java
:I would still like to receive touchMove and specifically touchEnd events when the gesture starts and ends. However, now I would only get a few touchMove events and touchCancelled. It doesn't seem to be difficult to implement, but maybe there is a reason why this approach is chosen?
Steps to reproduce
npx react-native@latest init AwesomeProject22
onTouchMove={()=>console.log("moving")}
npx react-native run-android
React Native Version
0.74.1
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/AndriusZal/44594-Reproducer
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: