Changes precision of Zap Splits to 1% steps
This commit is contained in:
@@ -1143,7 +1143,7 @@ fun FowardZapTo(
|
|||||||
Slider(
|
Slider(
|
||||||
value = splitItem.percentage,
|
value = splitItem.percentage,
|
||||||
onValueChange = { sliderValue ->
|
onValueChange = { sliderValue ->
|
||||||
val rounded = (round(sliderValue * 20)) / 20.0f
|
val rounded = (round(sliderValue * 100)) / 100.0f
|
||||||
postViewModel.updateZapPercentage(index, rounded)
|
postViewModel.updateZapPercentage(index, rounded)
|
||||||
},
|
},
|
||||||
modifier = Modifier.weight(1.5f),
|
modifier = Modifier.weight(1.5f),
|
||||||
|
|||||||
Reference in New Issue
Block a user