Ignore touches to the top of the player

This commit is contained in:
Bnyro 2022-12-22 10:40:46 +01:00
parent 0ecd9fbf28
commit 6b68fa71f6

View File

@ -55,6 +55,9 @@ class PlayerGestureController(activity: BaseActivity, private val listener: Play
listener.onSwipeEnd() listener.onSwipeEnd()
} }
// ignore touches to the top of the player
if (event.y < height * 0.1) return false
// Event can be already consumed by some view which may lead to NPE. // Event can be already consumed by some view which may lead to NPE.
try { try {
scaleGestureDetector.onTouchEvent(event) scaleGestureDetector.onTouchEvent(event)