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 {