airbnb / rheostat

Rheostat is a www, mobile, and accessible slider component built with React
MIT License
1.69k stars 189 forks source link

Snap points are not apparent while dragging #176

Open majapw opened 6 years ago

majapw commented 6 years ago

The handle currently snaps to a valid snap point at the end of a drag. While the handle is dragged, the control calls onValuesUpdated with all of the values between the snap points.

This behavior is a little odd because it's a little ambiguous what a valid snap point is until you stop dragging the handle. Snap points can be defined arbitrarily and it's weird to allow the UI to get updated (through onValuesUpdated) with any value that is not a valid snap point.

It would be beneficial if the snap points were reflected while the user was dragging the handle and not just after letting go.

FYI @ljharb

Ninos commented 5 years ago

Same problem with iphone, on desktop (e.g. firefox) all is working fine. On iPhone drag & drop is not working. Any news about that issue?