mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40: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) {
|
override fun onSwipeLeftScreen(distanceY: Float) {
|
||||||
if (!PlayerHelper.swipeGestureEnabled) return
|
if (!PlayerHelper.swipeGestureEnabled) {
|
||||||
|
if (PlayerHelper.fullscreenGesturesEnabled) onSwipeCenterScreen(distanceY)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (isControllerFullyVisible) hideController()
|
if (isControllerFullyVisible) hideController()
|
||||||
updateBrightness(distanceY)
|
updateBrightness(distanceY)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSwipeRightScreen(distanceY: Float) {
|
override fun onSwipeRightScreen(distanceY: Float) {
|
||||||
if (!PlayerHelper.swipeGestureEnabled) return
|
if (!PlayerHelper.swipeGestureEnabled) {
|
||||||
|
if (PlayerHelper.fullscreenGesturesEnabled) onSwipeCenterScreen(distanceY)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (isControllerFullyVisible) hideController()
|
if (isControllerFullyVisible) hideController()
|
||||||
updateVolume(distanceY)
|
updateVolume(distanceY)
|
||||||
|
Loading…
Reference in New Issue
Block a user