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

Fixing initialZoomScaleWithMinScale when image is larger than the screen #86

Closed
wants to merge 1 commit into from

Conversation

douglasjunior
Copy link

@douglasjunior douglasjunior commented Aug 18, 2017

For some reason, when the image is too large, it does not open in fit mode. #38

During the debug I realize that the value of self.minimumZoomScale is not consistent during the calculation. Storing this value in a variable solved the problem.

@douglasjunior
Copy link
Author

@alwx could you give me a suggestion?

@douglasjunior
Copy link
Author

douglasjunior commented Oct 3, 2017

Example before the change, note that the image starts a little zoomed:

photoview

After change:

photoview-ok

@douglasjunior
Copy link
Author

@alwx please, let me know if you need help to maintain this repository.

@almasaeed2010
Copy link

Just a note that this fix has worked for my on iOS.
Without this fix, the issue still persists on iPhone <= 8

before fix after fix
screen shot 2018-05-07 at 12 13 08 pm screen shot 2018-05-07 at 12 13 14 pm

If it's at all possible to use this logic instead, it'd be wonderful.

Thanks!

@antsmo
Copy link

antsmo commented Jul 24, 2018

Any reason why this hasn't been merged yet?

@khloukrada
Copy link

work perfectly.

@loiclouvet
Copy link

I need this too :)

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