Closed moonaala closed 4 months ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
Hi @moonaala! Could you please provide a copy-pastable reproduction (on snack/gist or as a link to github repository)? Those snippets use a lot of not provided variables which makes it hard to understand.
To add to that, based on the video you've provided it looks like the first pinch gesture behaves correctly. This may indicate that there is a problem with the transformations you're applying. Keep in mind that the focal point is in the coordinate space of the view the detector is attached to. If you attach the detector directly to the view you're transforming, the focal point will be in the scaled coordinates.
You may want to take a look at this example which implements something similar: https://github.com/software-mansion/react-native-gesture-handler/blob/29e0ca95ceecdc1ea503e2a8414190ee091dfbda/example/src/new_api/transformations/index.tsx
Description
Help me fixing the issue with a function that uses react native gesture handler, the first time pinching between focal points works just fine but subsequently it pinching it seems a bit off.
Steps to reproduce
Snack or a link to a repository
https://m.aala.pk/files/dozz8n3p1ifs9fsb9oaw3x3zce/public?h=x7jjZexzmZH4XWQYuc1YuMFzjP4AAkHhBMHf6wUdAD8
Gesture Handler version
2.16.1
React Native version
0.74.1
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
None
Architecture
Expo React native
Build type
Debug mode
Device
Real device
Device model
Any Android or iphone
Acknowledgements
Yes