natario1 / ZoomLayout

2D zoom and pan behavior for View hierarchies, images, video streams, and much more, written in Kotlin for Android.
https://natario1.github.io/ZoomLayout
Apache License 2.0
1.05k stars 147 forks source link

Fix setMaxZoom #229

Closed quanlt closed 1 year ago

quanlt commented 2 years ago

It's related to Unwanted animated zoom after setMaxZoom call #213 issue. I tried his solution and it worked. I am not sure why do you use zoom instead of realZoom, but replace it by realZoom fixed the animation issue. This PR is a simple fix.

markusressel commented 1 year ago

Haven't tested this myself, but the code makes sense to me. Can we merge this @natario1 ?

natario1 commented 1 year ago

Sure, makes sense!