🛠️ Fix Slider skips one step
Fixed SliderWithTitle skips one step.
This commit is contained in:
parent
25a730f86b
commit
6797bf03fb
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ fun SliderWithTitle(
|
|||
onValueChange = {
|
||||
onValueChange(it.roundToInt())
|
||||
},
|
||||
steps = toValue - fromValue,
|
||||
steps = toValue - fromValue - 1,
|
||||
colors = SliderDefaults.colors(
|
||||
activeTickColor = MaterialTheme.colorScheme.onPrimary,
|
||||
inactiveTickColor = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue