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
@ -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 New Issue
Block a user