Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
I've encountered a bug in the Wear Compose library related to the behavior of ScalingLazyColumn. When the first item in the list is centered, and new items are added before this first item, the list automatically jumps and centers on the new first item, causing an unexpected scrolling behavior.
This issue disrupts the user experience, as the view suddenly shifts, losing the initial focus and position within the list.
Steps to Reproduce:
1. Use ScalingLazyColumn to create a list of items.
2. Ensure the first item in the list is centered.
3. Programmatically add new items to the list before the first item.
4. Observe that the list automatically jumps, centering the newly prepended first item.
Expected Behavior: The list should maintain its current scroll position and not automatically scroll to center the new first item.
Actual Behavior: The list jumps and centers on the newly prepended first item, causing an unexpected shift in the user interface.
Environment:
Wear OS version: 2+
Wear Compose library version: 1.4.0