mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Merge pull request #3771 from Bnyro/master
Enter/Exit fullscreen gesture on whole screen if swipe gestures disabled
This commit is contained in:
commit
04c9b9488e
@ -686,14 +686,20 @@ internal class CustomExoPlayerView(
|
||||
}
|
||||
|
||||
override fun onSwipeLeftScreen(distanceY: Float) {
|
||||
if (!PlayerHelper.swipeGestureEnabled) return
|
||||
if (!PlayerHelper.swipeGestureEnabled) {
|
||||
if (PlayerHelper.fullscreenGesturesEnabled) onSwipeCenterScreen(distanceY)
|
||||
return
|
||||
}
|
||||
|
||||
if (isControllerFullyVisible) hideController()
|
||||
updateBrightness(distanceY)
|
||||
}
|
||||
|
||||
override fun onSwipeRightScreen(distanceY: Float) {
|
||||
if (!PlayerHelper.swipeGestureEnabled) return
|
||||
if (!PlayerHelper.swipeGestureEnabled) {
|
||||
if (PlayerHelper.fullscreenGesturesEnabled) onSwipeCenterScreen(distanceY)
|
||||
return
|
||||
}
|
||||
|
||||
if (isControllerFullyVisible) hideController()
|
||||
updateVolume(distanceY)
|
||||
|
Loading…
Reference in New Issue
Block a user