mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-08 20:08:06 +02:00
Changes precision of Zap Splits to 1% steps
This commit is contained in:
parent
06f6ab6719
commit
89c2e9d2e0
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user