-
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I can confirm a similar issue using a |
Beta Was this translation helpful? Give feedback.
-
@bradms could you share a small reproducer for your issue? |
Beta Was this translation helpful? Give feedback.
-
The issue is the following: Below is your code corrected. @Composable
@Preview
fun App() {
val listState = rememberScrollState(0)
Box(
modifier = Modifier
.background(color = Color(180, 180, 180))
) {
Box(
modifier = Modifier
.fillMaxSize()
.verticalScroll(listState)
.padding(end = 12.dp, bottom = 12.dp)) {
}
VerticalScrollbar(
adapter = rememberScrollbarAdapter(listState),
modifier = Modifier
.align(Alignment.CenterEnd)
.fillMaxHeight(),
)
}
} |
Beta Was this translation helpful? Give feedback.
The issue is the following:
Box with modifier verticalScroll should be on the same level as VerticalScrollbar itself. Otherwise scroll scroll itself. But of course, we it shouldn't crash like this. I'll create a ticket about it (#1616).
Below is your code corrected.