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

zoom state should be initial when zooming out to min scale #62

Closed
dasmikko opened this issue Dec 4, 2018 · 2 comments
Closed

zoom state should be initial when zooming out to min scale #62

dasmikko opened this issue Dec 4, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@dasmikko
Copy link

dasmikko commented Dec 4, 2018

I'm currently using the widget with the following settings:

initialScale: 1.0,
minScale: 1.0,
maxScale: 3.0

I was expecting when i'm zooming out to the min scale, the zoom state should be either originalSize or initial. But it returns the state zooming

@renancaraujo renancaraujo added the bug Something isn't working label Dec 4, 2018
@renancaraujo
Copy link
Member

Related to #61 and the issues pointed on #60

@renancaraujo
Copy link
Member

That only happens when we have the same value as initialScale and minScale. The reverse can occur when initialScale and maxScale share values.
To go solve this bug we have to detect the current scale factor whenever the scaling gesture (and its animations) ends.
Working on it.

CarSmallGuo pushed a commit to CarSmallGuo/photo_view that referenced this issue May 29, 2019
CarSmallGuo pushed a commit to CarSmallGuo/photo_view that referenced this issue May 30, 2019
CarSmallGuo pushed a commit to CarSmallGuo/photo_view that referenced this issue May 30, 2019
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

No branches or pull requests

2 participants