fakeheal / react-native-pan-pinch-view

🔍 A view component for React Native with pinch to zoom and drag to pan functionality.
MIT License
77 stars 13 forks source link

Focal point not working on Android #8

Closed surafelbm closed 9 months ago

surafelbm commented 1 year ago

Hello, tried zooming in and out on Android but the zoom view flies away from under my fingers, this is working perfectly on iOS

fakeheal commented 1 year ago

Hi,

what version of the package are you using? Also what's your Android device/emulator (Android version) and RN version?

fakeheal commented 9 months ago

I will close this issue due to inactivity. Feel free to reopen it.

hdjhdjhdj commented 1 month ago

react-native-pan-pinch-view v2.0.0 RN v0.74.4 Installing APK 'app-debug.apk' on 'Redmi 8A - android10' for :app:debug image image

hdjhdjhdj commented 1 month ago

Hi,

what version of the package are you using? Also what's your Android device/emulator (Android version) and RN version?

When zooming in on a picture with two fingers on an Android phone, the focus will be reset

fakeheal commented 1 month ago

Hey, @hdjhdjhdj,

can you also provide a screen recording of the issue? 🙏

All the other information you added is super helpful, too!

Best, Ivanka

hdjhdjhdj commented 1 month ago

https://github.com/user-attachments/assets/6c2b0685-6caf-4af4-9711-902839d87eb2

fakeheal commented 1 month ago

@hdjhdjhdj thank you for providing the video! ✨

Have you ran the examples provided in this repository? If you have, do you still experience this issue? If you haven't, can you run them and see if the package is the problem with this android version/device or if it's your specific implementation?

One suggestion I have from the code you shared is: Have you tried setting the height of containerDimensions to the variable height (excluding the bottom navigation height & bar height)?

hdjhdjhdj commented 1 month ago

When the image magnification exceeds the set maxScale, this effect will be more pronounced. I have tried other Android phones with the same effect

hdjhdjhdj commented 1 month ago

I'll run your demo and take a look。 My code is as follows image

hdjhdjhdj commented 1 month ago

The demo effect also has the same issue https://github.com/user-attachments/assets/77619398-cecf-4296-bdde-e9420b941cf7