From 450a2fc777748ba284166dc24142ebbc8bd93f99 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 29 Nov 2020 19:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt index 93e69ee26..353b37f82 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt @@ -169,7 +169,6 @@ class PageView(context: Context, attrs: AttributeSet) : setStartPoint(event.x, event.y) } MotionEvent.ACTION_MOVE -> { - pressDown = true if (!isMove) { isMove = abs(startX - event.x) > slopSquare || abs(startY - event.y) > slopSquare @@ -187,6 +186,7 @@ class PageView(context: Context, attrs: AttributeSet) : MotionEvent.ACTION_CANCEL, MotionEvent.ACTION_UP -> { removeCallbacks(longPressRunnable) if (!pressDown) return true + pressDown = false if (!isMove) { if (!longPressed && !pressOnTextSelected) { onSingleTapUp()