do not extend the queue window until it is centred

This commit is contained in:
austinried
2026-10-04 00:29:52 +00:00
parent 147916ff06
commit 3438c64428
@@ -309,7 +309,8 @@ fun QueueScreen(
dragTo = toPosition dragTo = toPosition
} }
LaunchedEffect(listState) { LaunchedEffect(listState, centered) {
if (!centered) return@LaunchedEffect
snapshotFlow { snapshotFlow {
val info = listState.layoutInfo val info = listState.layoutInfo
val firstVisible = info.visibleItemsInfo.firstOrNull()?.index ?: -1 val firstVisible = info.visibleItemsInfo.firstOrNull()?.index ?: -1