pavelbabenko / react-native-awesome-gallery

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

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

Open ivaniuk7531 opened 3 months ago

ivaniuk7531 commented 3 months 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 3 months ago

I have same issue

efstathiosntonas commented 3 months ago

same here!

efstathiosntonas commented 2 months 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.

christophemenager commented 1 month ago

@efstathiosntonas I confirm removing this line fixes the issue on android, thanks!