fix Can't scroll down to the bottom of the webtoon on the last chapter (#10291)
(cherry picked from commit c91ec9a33bae624ba2ec121daac80edc586f61f0)
This commit is contained in:
parent
ffe9517027
commit
66af8c80b6
@ -229,6 +229,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…
x
Reference in New Issue
Block a user