fix: search screen sticky header being clickable

fixes #969
This commit is contained in:
tapframe 2026-05-09 01:06:22 +05:30
parent a6f8041c9e
commit 951cb8f201

View file

@ -33,6 +33,7 @@ import androidx.compose.runtime.snapshotFlow
import androidx.compose.runtime.setValue import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.Dp
import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
@ -220,7 +221,14 @@ fun SearchScreen(
androidx.compose.foundation.layout.Column( androidx.compose.foundation.layout.Column(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()
.background(MaterialTheme.colorScheme.background), .background(MaterialTheme.colorScheme.background)
.pointerInput(Unit) {
awaitPointerEventScope {
while (true) {
awaitPointerEvent()
}
}
},
) { ) {
NuvioScreenHeader( NuvioScreenHeader(
title = headerTitle, title = headerTitle,