-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Description
Description
When performing a pinch gesture on Android, if one finger is lifted, the numberOfPointers property incorrectly remains at 2. This causes the focal point coordinates (focalX and focalY) to shift drastically, disrupting the pinch gesture handling.
You can view the experience here (please ignore the offsets it's a quick example):
Screen_Recording_20250305_183544_gesture-pinch-bug-android.mp4
This only happens on android, the experience of pinching is always creating the "jumping" effect.
Any help would be appreciated :3
Steps to reproduce
- Start a pinch gesture on an Android device with two fingers.
- Lift one finger while continuing to pinch the remaining finger.
- Observe the values of
numberOfPointers,focalX, andfocalYduring theonChangeoronUpdateevent.
Snack or a link to a repository
https://snack.expo.dev/@znikap/bug-android-on-pinch
Gesture Handler version
2.20.2, 2.24.0
UPD: Is not happening on 2.16.2
React Native version
0.74.5
Platforms
Android
JavaScript runtime
None
Workflow
Expo SDK 51
Architecture
None
Build type
None
Device
Real device
Device model
No response
Acknowledgements
Yes
ldalzottomp, NFSMONSTR and Pabblittto
Metadata
Metadata
Assignees
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided