This commit is contained in:
Horis
2024-08-09 18:06:38 +08:00
parent 2c9f15725b
commit 35f5168f17
@@ -170,7 +170,7 @@ class ReadView(context: Context, attrs: AttributeSet) :
this.rootWindowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.mandatorySystemGestures())
val height = activity?.windowManager?.currentWindowMetrics?.bounds?.height()
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
}
}