MetroList: Scroll to Current Song When Toggling Shuffle
Scritto da Alessio il 08/04/2026
Problem
When toggling shuffle mode in a playlist, the UI would scroll to an arbitrary position, leaving the current song invisible. The LaunchedEffect handling list scrolling wasn't triggered on shuffle toggle because it only watched the play queue list dependency.
Solution
Added currentWindowIndex as a dependency to the LaunchedEffect that handles list scrolling. Now when shuffle is toggled, the effect recomposes and scrolls to the correct position.
Result
Current song remains visible when toggling shuffle. Consistent UX across all playback modes.
Commit: MetrolistGroup/Metrolist@cef3566
PR: #3485