Skip to content
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

Merged
merged 8 commits into from
Oct 16, 2020
Merged

Support react-native 0.60+ and bug fixes #194

merged 8 commits into from
Oct 16, 2020

Conversation

thanhcuong1990
Copy link
Contributor

No description provided.

android/build.gradle Outdated Show resolved Hide resolved
@luco
Copy link

luco commented Jan 27, 2020

@alwx Please, merge.

@alwx alwx merged commit ef532a3 into alwx:master Oct 16, 2020
@alwx
Copy link
Owner

alwx commented Oct 16, 2020

@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);
Copy link

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?

@jsamr
Copy link

jsamr commented Mar 15, 2021

@alwx Would you mind releasing on NPM? The latest release is 3 years old...
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants