From c91ec9a33bae624ba2ec121daac80edc586f61f0 Mon Sep 17 00:00:00 2001 From: Naputt1 <94742489+Naputt1@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:52:10 +0700 Subject: [PATCH] fix Can't scroll down to the bottom of the webtoon on the last chapter (#10291) --- .../tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt index b6abc4834..d86619cdf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt @@ -214,6 +214,9 @@ class WebtoonRecyclerView @JvmOverloads constructor( if (!isZooming && doubleTapZoom) { if (scaleX != DEFAULT_RATE) { zoom(currentScale, DEFAULT_RATE, x, 0f, y, 0f) + layoutParams.height = originalHeight + halfHeight = layoutParams.height / 2 + requestLayout() } else { val toScale = 2f val toX = (halfWidth - ev.x) * (toScale - 1)