mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user