The Pinch gesture focalX and focalY 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.
As the author of the linked repository, you can find "run instructions" here as well as examples to test with, I can also confirm the lack of decimal places is what makes my library jitter as described in the mentioned issue.
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