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

FIT_TO_SCREEN + double tap #81

Open
mbmc opened this issue Oct 16, 2015 · 1 comment
Open

FIT_TO_SCREEN + double tap #81

mbmc opened this issue Oct 16, 2015 · 1 comment

Comments

@mbmc
Copy link

mbmc commented Oct 16, 2015

setDisplayType(ImageViewTouchBase.DisplayType.FIT_TO_SCREEN) will display the imageview to fit the screen while keeping the aspect ratio, but if I double tap to zoom in then out, the imageview will not fit the screen anymore.

@andreaboi83
Copy link

You have to check if current scale is less than original scale. If yes, you have to reset matrix!

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

No branches or pull requests

2 participants