mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 03:41:57 +01:00
fix Can't scroll down to the bottom of the webtoon on the last chapter (#10291)
This commit is contained in:
parent
a8040cb21a
commit
c91ec9a33b
1 changed files with 3 additions and 0 deletions
|
@ -214,6 +214,9 @@ class WebtoonRecyclerView @JvmOverloads constructor(
|
||||||
if (!isZooming && doubleTapZoom) {
|
if (!isZooming && doubleTapZoom) {
|
||||||
if (scaleX != DEFAULT_RATE) {
|
if (scaleX != DEFAULT_RATE) {
|
||||||
zoom(currentScale, DEFAULT_RATE, x, 0f, y, 0f)
|
zoom(currentScale, DEFAULT_RATE, x, 0f, y, 0f)
|
||||||
|
layoutParams.height = originalHeight
|
||||||
|
halfHeight = layoutParams.height / 2
|
||||||
|
requestLayout()
|
||||||
} else {
|
} else {
|
||||||
val toScale = 2f
|
val toScale = 2f
|
||||||
val toX = (halfWidth - ev.x) * (toScale - 1)
|
val toX = (halfWidth - ev.x) * (toScale - 1)
|
||||||
|
|
Loading…
Reference in a new issue