-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support react-native 0.60+ and bug fixes #194
Conversation
@alwx Please, merge. |
@thanhcuong1990 thanks for your contribution and sorry that it took me so much time to merge it :) |
@@ -153,7 +154,7 @@ - (CGFloat)initialZoomScaleWithMinScale { | |||
if (ABS(boundsAR - imageAR) < 0.17) { | |||
zoomScale = MAX(xScale, yScale); | |||
// Ensure we don't zoom in or out too far, just in case | |||
zoomScale = MIN(MAX(self.minimumZoomScale, zoomScale), self.maximumZoomScale); | |||
zoomScale = MIN(MAX(minZoom, zoomScale), minZoom); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thanhcuong1990 Given zoom scale range is [0.1, 3]
if the zoom scale is 2
, MIN(MAX(minZoom, zoomScale), minZoom)
returns 0.1
can you share the reason for this change?
@alwx Would you mind releasing on NPM? The latest release is 3 years old... |
No description provided.