优化
This commit is contained in:
1 parent
755eff1801
commit
fca3a7dd7b
1 file changed
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user