From 216df92deb9beafd3be48c8493df78ad88f67289 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 19 Feb 2020 16:36:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/read/page/delegate/SimulationPageDelegate.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt index f7295f878..de6eb2abe 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt @@ -509,7 +509,8 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi // 如果继续翻页,会出现BUG故在此限制 if (touchX > 0 && touchX < viewWidth) { if (mBezierStart1.x < 0 || mBezierStart1.x > viewWidth) { - if (mBezierStart1.x < 0) mBezierStart1.x = viewWidth - mBezierStart1.x + if (mBezierStart1.x < 0) + mBezierStart1.x = viewWidth - mBezierStart1.x val f1: Float = abs(mCornerX - touchX) val f2: Float = viewWidth * f1 / mBezierStart1.x touchX = abs(mCornerX - f2)