Hi. In `LazyRow` when I call `animateScrollToItem...
# compose
t
Hi. In
LazyRow
when I call
animateScrollToItem
back to a short item seems like it doesn’t animate the scroll at all. Sample code in 🧵
Copy code
Column {
                    LazyRow(
                        state = listState,
                        modifier = Modifier.fillMaxWidth()
                    ) {
                        items(3) {
                            Box(modifier = Modifier
                                .padding(end = 20.dp)
                                .background(Color.White)) {
                                Text(text = "Test", Modifier.padding(10.dp))
                            }
                        }
                        items(3) {
                            Box(modifier = Modifier
                                .padding(end = 20.dp)
                                .background(Color.White)) {
                                Text(text = "Really loooooooooooong text", Modifier.padding(10.dp))
                            }
                        }
                        items(3) {
                            Box(modifier = Modifier
                                .padding(end = 20.dp)
                                .background(Color.White)) {
                                Text(text = "Test", Modifier.padding(10.dp))
                            }
                        }
                    }
                    Spacer(modifier = Modifier.height(20.dp))
                    Row {
                        Button(onClick = { if (itemIndex > 0) itemIndex-- }) {
                            Text(text = "-")
                        }
                        Spacer(modifier = Modifier.width(50.dp))
                        Button(onClick = { itemIndex++ }) {
                            Text(text = "+")
                        }
                    }
                }
a
could you please file a bug?
t
Issue created
Copy code
<https://issuetracker.google.com/issues/194873110>