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
16.07k stars 1.17k forks source link

LazyColumn gets stuck scrolling when an item is too big. #800

Closed Dominaezzz closed 3 years ago

Dominaezzz commented 3 years ago

I haven't isolated a reproducer for this yet but when the size of an item in the LazyColumn is really close to size of the LazyColumn itself, the scrollbar keeps snapping back, preventing further scrolling. To escape this, I have to scrolll very aggressively, or fast enough to beat the snap.

Dominaezzz commented 3 years ago

Note to self: https://github.com/androidx/androidx/blob/d3a8167883356ee9c2d8cc7b48cc0463a8780c74/compose/foundation/foundation/src/desktopMain/kotlin/androidx/compose/foundation/Scrollbar.desktop.kt#L458

ryihan commented 3 years ago

Fix 0.5.0........

Dominaezzz commented 3 years ago

Sorry this has nothing to do with srollbar. LazyColumn does this by itself.

Dominaezzz commented 3 years ago

https://user-images.githubusercontent.com/14130965/125849316-8885173f-faf6-4b52-8e66-b5d42a56e3fb.mp4

Dominaezzz commented 3 years ago

Tracked it down to this here https://github.com/androidx/androidx/blob/9f596ce819a7fd24401992aa249596d0dbc21d1d/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListMeasure.kt#L34 .

Dominaezzz commented 3 years ago

Moved to here https://issuetracker.google.com/issues/179593134 . It's not desktop specific.

okushnikov commented 1 month ago

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