diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt index 11b469af1..3f8c29ca3 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/HorizontalPageDelegate.kt @@ -119,7 +119,7 @@ abstract class HorizontalPageDelegate(readView: ReadView) : PageDelegate(readVie abortAnim() if (!hasNext()) return setDirection(PageDirection.NEXT) - readView.setTouchPoint(viewWidth.toFloat(), 0f, false) + readView.setStartPoint(viewWidth.toFloat(), 0f, false) onAnimStart(animationSpeed) } @@ -127,7 +127,7 @@ abstract class HorizontalPageDelegate(readView: ReadView) : PageDelegate(readVie abortAnim() if (!hasPrev()) return setDirection(PageDirection.PREV) - readView.setTouchPoint(0f, 0f) + readView.setStartPoint(0f, 0f, false) onAnimStart(animationSpeed) } diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt index a70961487..2b417240c 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt @@ -3,7 +3,7 @@ package io.legado.app.ui.book.read.page.delegate import android.content.Context import android.graphics.Canvas import android.view.MotionEvent -import android.view.animation.DecelerateInterpolator +import android.view.animation.LinearInterpolator import android.widget.Scroller import androidx.annotation.CallSuper import com.google.android.material.snackbar.Snackbar @@ -37,7 +37,7 @@ abstract class PageDelegate(protected val readView: ReadView) { protected var viewHeight: Int = readView.height protected val scroller: Scroller by lazy { - Scroller(readView.context, DecelerateInterpolator()) + Scroller(readView.context, LinearInterpolator()) } private val snackBar: Snackbar by lazy {