Closed wojn closed 1 year ago
Not related to the issue, but there's a bug in your code: myStringList
should be remembered. It only works correctly because that function never ends up being recomposed.
Ah, and also, you shouldn't launch a coroutine like that inside application
: you should use LaunchedEffect
.
Thanks for the report! It's related to new mouse wheel animation.
For now you can disable this behaviour by setting compose.scrolling.smooth.enabled
system property to false
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Scrolling lazy list via mouse wheel while new elements are added to the list and scrollToItem method is called on LazyListState, breaks scrolling via mouse wheel.
Affected platforms Select one of the platforms below:
Versions
To Reproduce Minimal reproducible example:
Expected behavior It should be possible to scroll the list using mouse wheel.
Actual behavior Using mouse wheel doesn't scroll the list. The list can still be scrolled by moving vertical scrollbar via mouse.