mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
do not extend the queue window until it is centred
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user