From 0cadd39f42abb4e7b1d7d17e02a872c76ecd1ae2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Sep 2019 13:04:03 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/widget/page/delegate/PageDelegate.kt | 7 ++++++- 1 file changed, 6 insertions(+), 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 7f9ea1292..c40802d74 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 @@ -173,6 +173,9 @@ abstract class PageDelegate(protected val pageView: PageView) { onScrollStart() } + /** + * 触摸事件处理 + */ fun onTouch(event: MotionEvent): Boolean { if (isStarted) return false if (curPage?.isTextSelected() == true) { @@ -206,7 +209,9 @@ abstract class PageDelegate(protected val pageView: PageView) { NONE, PREV, NEXT } - + /** + * 触摸事件处理 + */ private inner class GestureListener : GestureDetector.SimpleOnGestureListener() { override fun onDown(e: MotionEvent): Boolean {