JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.98k stars 1.16k forks source link

[desktop] ScrollBar freezes the app if listState.animateScrollBy or animateScrollToItem are used #4661

Closed avently closed 5 months ago

avently commented 5 months ago

Describe the bug

When dragging scrollbar and something calls listState.animateScrollBy(10f), the app freezes and there is no way to use it without restart. With listState.scrollBy it works fine, so it's somehow related to animation.

Affected platforms

Versions

To Reproduce

This behaviour is somehow related to animation because if you call listState.scrollBy(10f) eveyrthing is fine. animateScrollToItem is also affected while scrollToItem is not.

Expected behavior Shouldn't freeze the app

alexzhirkevich commented 5 months ago

It is the same bug as #3807 and should be already fixed by https://github.com/JetBrains/compose-multiplatform-core/pull/575. Try 1.6.10-beta01

avently commented 5 months ago

I found that issue before but not resulting PR. It works, thank you!

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.