Changes precision of Zap Splits to 1% steps

pull/824/head
Vitor Pamplona 2024-04-04 17:19:03 -04:00
rodzic 06f6ab6719
commit 89c2e9d2e0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1143,7 +1143,7 @@ fun FowardZapTo(
Slider(
value = splitItem.percentage,
onValueChange = { sliderValue ->
val rounded = (round(sliderValue * 20)) / 20.0f
val rounded = (round(sliderValue * 100)) / 100.0f
postViewModel.updateZapPercentage(index, rounded)
},
modifier = Modifier.weight(1.5f),