Horis 2 years ago
parent
commit
fca3a7dd7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt

+ 1 - 1
app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt

@@ -170,7 +170,7 @@ class ReadView(context: Context, attrs: AttributeSet) :
                 this.rootWindowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.mandatorySystemGestures())
                 this.rootWindowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.mandatorySystemGestures())
             val height = activity?.windowManager?.currentWindowMetrics?.bounds?.height()
             val height = activity?.windowManager?.currentWindowMetrics?.bounds?.height()
             if (height != null) {
             if (height != null) {
-                if (event.y > height.minus(insets.bottom)) {
+                if (event.y > height.minus(insets.bottom) && event.action != MotionEvent.ACTION_UP && event.action != MotionEvent.ACTION_CANCEL) {
                     return true
                     return true
                 }
                 }
             }
             }