diff --git a/app/src/main/java/com/github/libretube/util/PlayerGestureController.kt b/app/src/main/java/com/github/libretube/util/PlayerGestureController.kt index fe6b74d5b..7e7355077 100644 --- a/app/src/main/java/com/github/libretube/util/PlayerGestureController.kt +++ b/app/src/main/java/com/github/libretube/util/PlayerGestureController.kt @@ -55,6 +55,9 @@ class PlayerGestureController(activity: BaseActivity, private val listener: Play 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. try { scaleGestureDetector.onTouchEvent(event)