mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
use minscale for landscape page zoom
This commit is contained in:
parent
68e3a832b6
commit
417aea3013
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue