fix realtime solfa sync slider
This commit is contained in:
parent
0e3a422a92
commit
8d23b20439
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue