use minscale for landscape page zoom

This commit is contained in:
Jays2Kings 2022-04-26 02:55:37 -04:00
parent 68e3a832b6
commit 417aea3013

View file

@ -277,7 +277,7 @@ class PagerPageHolder(
viewer.activity.window.decorView.rootWindowInsets.bottomCutoutInset().toFloat()
}
val targetScale = (height.toFloat() - topInsets - bottomInsets) / sHeight.toFloat()
animateScaleAndCenter(min(targetScale, scale * 2), point)!!
animateScaleAndCenter(min(targetScale, minScale * 2), point)!!
.withDuration(500)
.withEasing(SubsamplingScaleImageView.EASE_IN_OUT_QUAD)
.withInterruptible(true)