From d79e141fe5f9c8b64bc33aec6c1daaad01500b5a Mon Sep 17 00:00:00 2001 From: inorichi Date: Sat, 17 Nov 2018 16:23:03 +0100 Subject: [PATCH] Fix issue with center zoom position --- .../kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt index b6fc4c54a..fc8dece8f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt @@ -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() }