pull/34/head
kunfei 5 years ago
parent 000f165038
commit 0cadd39f42
  1. 7
      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() onScrollStart()
} }
/**
* 触摸事件处理
*/
fun onTouch(event: MotionEvent): Boolean { fun onTouch(event: MotionEvent): Boolean {
if (isStarted) return false if (isStarted) return false
if (curPage?.isTextSelected() == true) { if (curPage?.isTextSelected() == true) {
@ -206,7 +209,9 @@ abstract class PageDelegate(protected val pageView: PageView) {
NONE, PREV, NEXT NONE, PREV, NEXT
} }
/**
* 触摸事件处理
*/
private inner class GestureListener : GestureDetector.SimpleOnGestureListener() { private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
override fun onDown(e: MotionEvent): Boolean { override fun onDown(e: MotionEvent): Boolean {

Loading…
Cancel
Save