openspacelabs / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
205 stars 57 forks source link

overpanning on android only #88

Open stevenmathers opened 7 months ago

stevenmathers commented 7 months ago

same code and same images on ios works fine, but there is slight overpanning on android

specifically for content with an aspect ratio that completely fills the vertical zoom subject, this happens. If the content aspect ratio fills the horizontal zoom subject, but not the vertical, it doesnt happen.

It feels like there might be something to do with the status bar, but I am definately setting the contentHeight using the window height, not the screen height. I mean, its the same calculation regardless of the image itself, and if its a landscape type of aspect ratio, when I zoom, in the content bounding is pixel perfect.

I cant really understand it.