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

fix: solve the issue of initial minimum zoom scale is not working #190

Merged
merged 2 commits into from
Jul 28, 2022

Conversation

guoyingtao
Copy link
Owner

This PR fixes #189

@guoyingtao guoyingtao added the bug Something isn't working label Jul 28, 2022
Example/Podfile Outdated
@@ -7,6 +7,7 @@ target 'MantisExample' do

# Pods for MantisExample
pod 'Mantis', :path => '../'
# pod 'Mantis', '~> 2.0.1'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

minimumZoomScale = 1.0
zoomScale = 1.0

minimumZoomScale = max(1.0, initialMinimumZoomScale)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's document that minimumZoomScale needs to be >= 1.0?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment for it

remove commented #  pod 'Mantis', '~> 2.0.1'
@guoyingtao guoyingtao merged commit 560e272 into master Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

minimumZoomScale not auto applied automatically?
2 participants