fix: consume vertical drag events to prevent overlay toggle

Vertical drag gestures (brightness/volume) were not consuming pointer
events, causing detectTapGestures to fire onTap and toggle the player
overlay when the gesture ended.
This commit is contained in:
2026-02-19 20:25:39 +01:00
parent 6191098158
commit a86d496ff9

View File

@@ -94,6 +94,7 @@ fun PlayerGesturesLayer(
} }
} }
DragDirection.VERTICAL -> { DragDirection.VERTICAL -> {
change.consume()
val isLeftSide = startX < size.width / 2 val isLeftSide = startX < size.width / 2
if (isLeftSide) { if (isLeftSide) {
onVerticalDragLeft(delta.y) onVerticalDragLeft(delta.y)