Commit de5e8395 authored by Geoffrey Métais's avatar Geoffrey Métais

Filter gesture detection when player is locked

parent af1617ec
......@@ -83,10 +83,12 @@ class VideoTouchDelegate(private val player: VideoPlayerActivity,
return true
}
else -> {
scaleGestureDetector.onTouchEvent(event)
if (scaleGestureDetector.isInProgress) {
touchAction = TOUCH_IGNORE
return true
if (!player.isLocked) {
scaleGestureDetector.onTouchEvent(event)
if (scaleGestureDetector.isInProgress) {
touchAction = TOUCH_IGNORE
return true
}
}
if (touchControls == 0 || player.isLocked) {
// locked or swipe disabled, only handle show/hide & ignore all actions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment