mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-16 23:12:12 +00:00
fix: volume/brightness gesture triggering when hold to speed is active
Fixes #992
This commit is contained in:
parent
4ca66bc385
commit
a6f8041c9e
1 changed files with 5 additions and 2 deletions
|
|
@ -1449,12 +1449,15 @@ fun PlayerScreen(
|
|||
totalDy += delta.y
|
||||
|
||||
if (gestureMode == null) {
|
||||
val holdToSpeedActive = isHoldToSpeedGestureActiveState.value
|
||||
val horizontalDominant =
|
||||
!isHoldToSpeedGestureActiveState.value &&
|
||||
!holdToSpeedActive &&
|
||||
abs(totalDx) > viewConfiguration.touchSlop &&
|
||||
abs(totalDx) > abs(totalDy)
|
||||
val verticalDominant =
|
||||
abs(totalDy) > viewConfiguration.touchSlop && abs(totalDy) > abs(totalDx)
|
||||
!holdToSpeedActive &&
|
||||
abs(totalDy) > viewConfiguration.touchSlop &&
|
||||
abs(totalDy) > abs(totalDx)
|
||||
|
||||
gestureMode = when {
|
||||
horizontalDominant -> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue