You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The difference in multi touch pan handling lies in the way how translation properties during the event are being calculated. On iOS the default behavior when more than one finger is placed on the screen is to treat this situation as if only one pointer was placed in the center of mass (average position of all the pointers). This applies also to many platform native components that handle touch even if not primarily interested in multi touch interactions like for example UIScrollView component.
The default behavior for native components like scroll view, pager views or drawers is different and hence gesture defaults to that when it comes to pan handling. The difference is that instead of treating the center of mass of all the fingers placed as a leading pointer it takes the latest placed finger as such. This behavior can be changed on Android using avgTouches flag.
Is the second paragraph meant to refer to Android, e.g. "The default behavior for native Android components"? Otherwise it's unclear what it's describing and how it relates to the previous paragraph. Also, the avgTouches link doesn't go anywhere.
Steps to reproduce
see above
Snack or a link to a repository
irrelevant
Gesture Handler version
irrelevant
React Native version
irrelevant
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered:
Description
From https://docs.swmansion.com/react-native-gesture-handler/docs/api/gestures/pan-gesture#multi-touch-pan-handling:
Is the second paragraph meant to refer to Android, e.g. "The default behavior for native Android components"? Otherwise it's unclear what it's describing and how it relates to the previous paragraph. Also, the
avgTouches
link doesn't go anywhere.Steps to reproduce
see above
Snack or a link to a repository
irrelevant
Gesture Handler version
irrelevant
React Native version
irrelevant
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: