From aad8c3cf54c9189fa562d27a26174b8025c26b80 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 23 Sep 2019 14:46:36 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt b/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt index 56a61ba71..387d8c9b2 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/delegate/PageDelegate.kt @@ -94,7 +94,7 @@ abstract class PageDelegate(protected val pageView: PageView) { startY, dx, dy, - if (dx != 0) (dx * 0.3).toInt() else (dy * 0.3).toInt() + if (dx != 0) (abs(dx) * 0.3).toInt() else (abs(dy) * 0.3).toInt() ) isRunning = true isStarted = true