zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
892 stars 231 forks source link

Step function for non linear values #62

Closed veloce closed 5 years ago

mehiel commented 8 years ago

This is actually really interesting. We could probably implement something like rc-slider's marks on top of it.

No interest on merging?

jamesbrauman commented 8 years ago

@mehiel Could you let me know in what circumstances something like this could be useful?

davidpellerin commented 8 years ago

This is indeed very interesting. I can imagine this being used on sliders which involve currency. Sometimes the majority end-users want to choose a price that is more on the low end, and a small amount of users want to choose larger number (examples: prices of houses, jewelry, etc..). A way of displaying the values in a logarithmic scale would be awesome. I'll pull down this branch and test and give some feedback.

mehiel commented 8 years ago

@jamesbrauman seems like I missed the notification on your message. The truth is that for what I wanted this didn't prove useful - I needed a slider with snapping and marks. So I used react-slider but I implemented the marking feature in a custom manner by wrapping it in another component.

But the case @davidpellerin describes has value as well. It may be an edge case but makes sense.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.