Skip to content

Commit

Permalink
fix Can't scroll down to the bottom of the webtoon on the last chapte…
Browse files Browse the repository at this point in the history
…r (#10291)
  • Loading branch information
Naputt1 authored Jan 8, 2024
1 parent a8040cb commit c91ec9a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c91ec9a

Please sign in to comment.