Skip to content

Reseting previous scale when listener is reset#65

Open
matthewrpape wants to merge 1 commit into
jasonpolites:masterfrom
matthewrpape:master
Open

Reseting previous scale when listener is reset#65
matthewrpape wants to merge 1 commit into
jasonpolites:masterfrom
matthewrpape:master

Conversation

@matthewrpape
Copy link
Copy Markdown

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