mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05: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 (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)
|
||||
|
|
Loading…
Reference in a new issue