On androidx.compose.material.RangeSlider, when I s...
# compose
e
On androidx.compose.material.RangeSlider, when I set the steps parameter, I can move the left track past the right track. Is this a bug? Can I block this?
j
e
IIUC this is fixing only Material3
j
From a quick look I'm surprised the old Material one has this problem
It seems to be coercing ranges correctly
r
Which reminds me I want to write a blog post about floats
z
Just one? 😛
r
It might be very long :)
z
Wouldn’t that be a double 🥁
😄 7
e
The left track "stops" when it gets to the right, but if I keep moving, when I untouch it, its position is past the right. When I start again, it's initial position repositions it on the right track.
j
Ah yeah there's clamping on the drag but not the gesture end. You should send a PR!
r
There was an update to the PR an hour ago or so
j
That's for Material 3, this person is on old Material
r
Gotcha