mirror of
https://github.com/bbara04/Purefin.git
synced 2026-04-01 01:30: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. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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