You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add a clear description of what the bug is, and fill the list below.
Library version: 1.8.0
Reproducible in official demo app: no, but repro app included
Device / Android version: Nexus 5, API 21
I'm implementing a feature that allows users to select the resolution of the image being displayed. I reset the zoom to 1 with zoomTo(1f, false) when the user selects a resolution, like so:
but ZoomLayout sometimes ignores the call and sets the zoom to 2.
If you run my repro app, then tap the 3 resolution buttons, you'll see the unwanted jumps in zoom levels. Pan the image around with 1 finger to get updated zoom and realZoom values.
To Reproduce
Steps to reproduce the behavior, possibly in the demo app:
Thx for the detailed bug report ❤️
Not sure when I have time, but I will try to investigate this.
If you find any hints as to why this might be happening, feel free to open a PR.
Describe the bug
Please add a clear description of what the bug is, and fill the list below.
I'm implementing a feature that allows users to select the resolution of the image being displayed. I reset the zoom to 1 with
zoomTo(1f, false)
when the user selects a resolution, like so:but ZoomLayout sometimes ignores the call and sets the zoom to 2.
If you run my repro app, then tap the 3 resolution buttons, you'll see the unwanted jumps in zoom levels. Pan the image around with 1 finger to get updated zoom and realZoom values.
To Reproduce
Steps to reproduce the behavior, possibly in the demo app:
Expected behavior
.zoomTo()
should not be ignored.XML layout
Declaration of your XML component, so we can read its attributes.
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
If applicable, please add logs to help diagnose the problem.
Use
ZoomLogger.setLogLevel(LEVEL_INFO)
to stream all logs into LogCat.APK
Link to a Github repo where the bug is reproducible.
The text was updated successfully, but these errors were encountered: