mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-26 07:06:03 +03:00
Fix issue with center zoom position
This commit is contained in:
parent
030071e659
commit
d79e141fe5
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class PagerPageHolder(
|
|||
when (config.imageZoomType) {
|
||||
ZoomType.Left -> setScaleAndCenter(scale, PointF(0f, 0f))
|
||||
ZoomType.Right -> setScaleAndCenter(scale, PointF(sWidth.toFloat(), 0f))
|
||||
ZoomType.Center -> setScaleAndCenter(scale, center.apply { y = 0f })
|
||||
ZoomType.Center -> setScaleAndCenter(scale, center.also { it?.y = 0f })
|
||||
}
|
||||
onImageDecoded()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue