mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-09 21:09:35 +02:00
Fix issue with center zoom position
This commit is contained in:
@@ -314,7 +314,7 @@ class PagerPageHolder(
|
|||||||
when (config.imageZoomType) {
|
when (config.imageZoomType) {
|
||||||
ZoomType.Left -> setScaleAndCenter(scale, PointF(0f, 0f))
|
ZoomType.Left -> setScaleAndCenter(scale, PointF(0f, 0f))
|
||||||
ZoomType.Right -> setScaleAndCenter(scale, PointF(sWidth.toFloat(), 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()
|
onImageDecoded()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user