Describe the bug
Related to LazyVerticalStagggeredGrid. When the grid is in a scrolled down state and recreated due to returning from another screen, scrolling up causes the items to rearrange.
Affected platforms
Android
iOS
Versions
Libraries:
Compose Multiplatform version: 1.6.11
Kotlin version: 2.0.0
OS version(s) (required for Desktop and iOS issues): iOS 17.5
Device (model or simulator for iOS issues): iPhone 15 Pro simulator/ iPhone 13 Pro device/ Android any device
To Reproduce
Steps to reproduce the behavior:
Repository that exhibits the issue - https://github.com/rdsarna/KMP-App-Template
This is a fork of a sample from the Kotlin Multiplatform Wizard. Commits added to recreate the issue - commit1 and commit2.
Fresh install the app with an active internet connection (from the repo mentioned above)
Scroll down quite a bit
Tap on any item so the next screen opens
Return back to the grid
Slowly scroll up
Expected behavior
The items should remain in place as user scroll up.
Describe the bug Related to
LazyVerticalStagggeredGrid
. When the grid is in a scrolled down state and recreated due to returning from another screen, scrolling up causes the items to rearrange.Affected platforms
Versions
Libraries:
Kotlin version: 2.0.0
OS version(s) (required for Desktop and iOS issues): iOS 17.5
Device (model or simulator for iOS issues): iPhone 15 Pro simulator/ iPhone 13 Pro device/ Android any device
To Reproduce
Steps to reproduce the behavior: Repository that exhibits the issue - https://github.com/rdsarna/KMP-App-Template This is a fork of a sample from the Kotlin Multiplatform Wizard. Commits added to recreate the issue - commit1 and commit2.
Expected behavior The items should remain in place as user scroll up.
Screenshots Video for issue - https://youtube.com/shorts/369AA3R0XpQ