Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unexpected zoom when toggling toolbar overlay
The media viewer needs to be able to respond to double-taps, to zoom in/out of the media, and single taps, to hide/show the overlay. We track the tap position so that we know where the user wants to zoom into. However, we currently do not reset this tap position after double-tapping to zoom out of a view. For example, consider the following scenario: * Double-tap. We zoom in, and tapLocation is set to zero * Double-tap again. We zoom out, but tapLocation is not reset * Single-tap. We fall into the "Scale in to a specific point" branch * This causes an unexpected zoom-in followed by zoom-out To fix this, we make sure to always reset the tapPosition to zero after each zoom action has taken place.
- Loading branch information