Closed sergsave closed 2 years ago
Maybe this is because of this comparison https://github.com/natario1/ZoomLayout/blob/94962c425e87a2014eb118c1811000495772cb38/library/src/main/java/com/otaliastudios/zoom/ZoomEngine.kt#L850
zoom
has annotation @Zoom
, zoomManager.getMaxZoom()
has annotation @ZoomApi.RealZoom
.
I think comparison of different types is not correct.
In setMinZoom
value compares with realZoom
value
https://github.com/natario1/ZoomLayout/blob/94962c425e87a2014eb118c1811000495772cb38/library/src/main/java/com/otaliastudios/zoom/ZoomEngine.kt#L885
This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.
Describe the bug
ZoomLayout zooms when after
setMaxZoom(xx, ZoomApi.TYPE_REAL_ZOOM)
even currentrealZoom
value less thanmaxZoom
valueTo Reproduce
Expected behavior
The layout should not be zoomed when setting the maximum zoom, if the current zoom value is less than the setted maximum value.