Pinch gesture focalX & focalY truncated on iOS #2833
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
The Pinch gesture
focalX
andfocalY
values seem to be rounded / truncated on iOS as all the decimal places are zeros.This makes it impossible to implement butter smooth panning during a pinch gesture.
Tracing the current code I can see that
[locationInView:]
is used, which has this odd inaccurate behaviour.Steps to reproduce
Snack or a link to a repository
react-native-zoom-toolkit
Gesture Handler version
2.14.1
React Native version
0.73.6
Platforms
iOS
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: