fix: remove left in background for gesture testing

This commit is contained in:
2026-02-19 20:48:45 +01:00
parent 669cebf03f
commit 3e01a9b64a

View File

@@ -1,6 +1,5 @@
package hu.bbara.purefin.player.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.awaitEachGesture
import androidx.compose.foundation.gestures.awaitFirstDown
import androidx.compose.foundation.gestures.detectTapGestures
@@ -11,7 +10,6 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.input.pointer.positionChange
import androidx.compose.ui.platform.LocalDensity
@@ -38,8 +36,7 @@ fun PlayerGesturesLayer(
Box(
modifier = modifier
.fillMaxWidth(0.90f)
.fillMaxHeight(0.88f)
.background(Color(1f, 1f, 1f, 0.5f))
.fillMaxHeight(0.90f)
.pointerInput(Unit) {
detectTapGestures(
onTap = { onTap() },