fix realtime solfa sync slider

This commit is contained in:
hasinarak3@gmail.com 2026-01-19 16:39:15 +03:00
parent 0e3a422a92
commit 8d23b20439

View file

@ -556,7 +556,7 @@ fun LazyVerticalGridTUO(
val duration by sharedScreenModel.duration.collectAsState() val duration by sharedScreenModel.duration.collectAsState()
val isPlay by sharedScreenModel.isPlay.collectAsState() val isPlay by sharedScreenModel.isPlay.collectAsState()
val displayedList = tuoList.drop(1) val displayedList = tuoList.drop(1)
val nbTotalDesRow = displayedList.size val nbTotalDesRow = (displayedList.size-1)
val activeRowIndex = if (duration > 0f) { val activeRowIndex = if (duration > 0f) {
((currentPos / duration) * nbTotalDesRow).toInt().coerceIn(0, nbTotalDesRow - 1) ((currentPos / duration) * nbTotalDesRow).toInt().coerceIn(0, nbTotalDesRow - 1)
} else { } else {