mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +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
|
totalDy += delta.y
|
||||||
|
|
||||||
if (gestureMode == null) {
|
if (gestureMode == null) {
|
||||||
|
val holdToSpeedActive = isHoldToSpeedGestureActiveState.value
|
||||||
val horizontalDominant =
|
val horizontalDominant =
|
||||||
!isHoldToSpeedGestureActiveState.value &&
|
!holdToSpeedActive &&
|
||||||
abs(totalDx) > viewConfiguration.touchSlop &&
|
abs(totalDx) > viewConfiguration.touchSlop &&
|
||||||
abs(totalDx) > abs(totalDy)
|
abs(totalDx) > abs(totalDy)
|
||||||
val verticalDominant =
|
val verticalDominant =
|
||||||
abs(totalDy) > viewConfiguration.touchSlop && abs(totalDy) > abs(totalDx)
|
!holdToSpeedActive &&
|
||||||
|
abs(totalDy) > viewConfiguration.touchSlop &&
|
||||||
|
abs(totalDy) > abs(totalDx)
|
||||||
|
|
||||||
gestureMode = when {
|
gestureMode = when {
|
||||||
horizontalDominant -> {
|
horizontalDominant -> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue