diff --git a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/TimeUnitObject.kt b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/TimeUnitObject.kt index 233188c..3434c5a 100644 --- a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/TimeUnitObject.kt +++ b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/solfa/TimeUnitObject.kt @@ -556,7 +556,7 @@ fun LazyVerticalGridTUO( val duration by sharedScreenModel.duration.collectAsState() val isPlay by sharedScreenModel.isPlay.collectAsState() val displayedList = tuoList.drop(1) - val nbTotalDesRow = displayedList.size + val nbTotalDesRow = (displayedList.size-1) val activeRowIndex = if (duration > 0f) { ((currentPos / duration) * nbTotalDesRow).toInt().coerceIn(0, nbTotalDesRow - 1) } else {