Fix off by one error in SliderItem

This commit is contained in:
abdurisaq 2024-10-21 21:46:12 -07:00
parent c550a81598
commit 4078ab41e8

View File

@ -202,7 +202,7 @@ fun SliderItem(
}, },
modifier = Modifier.weight(1.5f), modifier = Modifier.weight(1.5f),
valueRange = min.toFloat()..max.toFloat(), valueRange = min.toFloat()..max.toFloat(),
steps = max - min, steps = max - min-1,
) )
} }
} }