In Android touchMove is cancelled when intercepted by native gesture from child #44594
Labels
Needs: Attention
Issues where the author has responded to feedback.
Needs: Triage 🔍
Platform: Android
Android applications.
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: