mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
Ignore touches to the top of the player
This commit is contained in:
parent
0ecd9fbf28
commit
6b68fa71f6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user