https://kotlinlang.org logo
#compose
Title
# compose
d

Daniels Šatcs

10/23/2020, 9:44 PM
I'm trying to use a Scaffold layout, with a modal drawer and a ScrollableColumn as bodyContent and experiencing some gesture issues.
Copy code
@Composable
fun drawer() {
    val scrollState = rememberScrollState()
    Scaffold(
            drawerContent = {},
    ) {
        ScrollableColumn(scrollState = scrollState) {
            1.until(1000).forEach {
                Text(modifier = Modifier.padding(8.dp).fillMaxWidth(), text = it.toString())
            }
        }
    }
}
For some reason scrolling the list right after the drawer is closed does not seem to work. Waiting half a second before scrolling works, but that's not how a user would expect it to behave. My guess is that the drawer's scrim is blocking the touch events from coming through. Is this a known issue or is this in any way the intended behavior? Attaching a video
a

Alexandre Elias [G]

10/24/2020, 12:03 AM
I think this is a previously unknown bug. I filed an issue on your behalf: https://issuetracker.google.com/issues/171601051 , feel free to star it or comment on it
👍 1
2 Views