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

Reseting previous scale when listener is reset #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthewrpape
Copy link

The GestureImageViewTouchListener keeps tabs on how scaled the image was on the last scale event. This allows it to correctly adjust to the new value when a scaling gesture is detected. The problem is that the reset() function does not wipe out the saved last scale value. If you reset the view and then pinch again, the view will immediately jump back to the size it was before the reset and then start scaling again. This PR addresses the issue simply by reseting the previous scale to the initial scale value.

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.

1 participant