mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
Fix TrackButtons to hide PersistentOverlay on outside touch
This commit is contained in:
@@ -142,12 +142,7 @@ private fun TrackSelectionPanel(
|
|||||||
.fillMaxHeight()
|
.fillMaxHeight()
|
||||||
.windowInsetsPadding(WindowInsets.safeDrawing)
|
.windowInsetsPadding(WindowInsets.safeDrawing)
|
||||||
.navigationBarsPadding()
|
.navigationBarsPadding()
|
||||||
.padding(horizontal = 16.dp, vertical = 12.dp)
|
.padding(horizontal = 16.dp, vertical = 12.dp),
|
||||||
.clickable(
|
|
||||||
interactionSource = remember { MutableInteractionSource() },
|
|
||||||
indication = null,
|
|
||||||
onClick = { /* Prevent clicks from bubbling */ }
|
|
||||||
),
|
|
||||||
contentAlignment = Alignment.BottomEnd
|
contentAlignment = Alignment.BottomEnd
|
||||||
) {
|
) {
|
||||||
Surface(
|
Surface(
|
||||||
@@ -158,7 +153,12 @@ private fun TrackSelectionPanel(
|
|||||||
minHeight = 220.dp,
|
minHeight = 220.dp,
|
||||||
maxHeight = 360.dp
|
maxHeight = 360.dp
|
||||||
)
|
)
|
||||||
.clip(RoundedCornerShape(topStart = 24.dp, topEnd = 24.dp, bottomStart = 24.dp)),
|
.clip(RoundedCornerShape(topStart = 24.dp, topEnd = 24.dp, bottomStart = 24.dp))
|
||||||
|
.clickable(
|
||||||
|
interactionSource = remember { MutableInteractionSource() },
|
||||||
|
indication = null,
|
||||||
|
onClick = { /* Consume taps inside the panel so outside taps dismiss the overlay. */ }
|
||||||
|
),
|
||||||
color = scheme.surface.copy(alpha = 0.97f)
|
color = scheme.surface.copy(alpha = 0.97f)
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
|
|||||||
Reference in New Issue
Block a user