pavelbabenko / react-native-awesome-gallery

Performant, native-like, and well-customizable gallery for React Native.
MIT License
455 stars 50 forks source link

[Android] Problem with pinch-to-zoom #83

Open ivaniuk7531 opened 1 month ago

ivaniuk7531 commented 1 month ago

The pinch-to-zoom doesn't work correctly. When I zoom in on the image and remove one finger, the image will jump. It happens only on Android. I used the latest version of react-native-awesome-gallery (0.4.2). My react-native version is 0.74.5 and react-native-gesture-handler 2.18.1. Also, I tried to use different versions of react-native-gesture-handler and react-native. This problem appears starting from a version of react native 0.73+.

Here's a video of how it works on Android

https://github.com/user-attachments/assets/10748077-823d-4a0c-a189-262f38472945

skochkodmytro commented 1 month ago

I have same issue

efstathiosntonas commented 1 month ago

same here!

efstathiosntonas commented 1 week ago

It seems that this line is causing the trouble:

After commenting it out the focal is correct and the image is properly zooms / properly stays in place after lifting fingers.