mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +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
|
||||
}
|
||||
|
||||
LaunchedEffect(listState) {
|
||||
LaunchedEffect(listState, centered) {
|
||||
if (!centered) return@LaunchedEffect
|
||||
snapshotFlow {
|
||||
val info = listState.layoutInfo
|
||||
val firstVisible = info.visibleItemsInfo.firstOrNull()?.index ?: -1
|
||||
|
||||
Reference in New Issue
Block a user