Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LazyVerticalStaggeredGrid rearranges items when scrolling up #5042

Open
rdsarna opened this issue Jun 28, 2024 · 0 comments
Open

LazyVerticalStaggeredGrid rearranges items when scrolling up #5042

rdsarna opened this issue Jun 28, 2024 · 0 comments
Labels
bug Something isn't working submitted

Comments

@rdsarna
Copy link

rdsarna commented Jun 28, 2024

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.

  1. Fresh install the app with an active internet connection (from the repo mentioned above)
  2. Scroll down quite a bit
  3. Tap on any item so the next screen opens
  4. Return back to the grid
  5. Slowly scroll up

Expected behavior
The items should remain in place as user scroll up.

Screenshots
Video for issue - https://youtube.com/shorts/369AA3R0XpQ

@rdsarna rdsarna added bug Something isn't working submitted labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working submitted
Projects
None yet
Development

No branches or pull requests

2 participants
@rdsarna and others