Skip to content

Commit

Permalink
Changes precision of Zap Splits to 1% steps
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Apr 4, 2024
1 parent 06f6ab6 commit 89c2e9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 89c2e9d

Please sign in to comment.