Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider field #12728

Open
danharrin opened this issue May 10, 2024 · 6 comments
Open

Slider field #12728

danharrin opened this issue May 10, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@danharrin
Copy link
Member

No description provided.

@danharrin danharrin added the enhancement New feature or request label May 10, 2024
@danharrin danharrin added this to the v3 milestone May 10, 2024
@zepfietje
Copy link
Member

Could you add a little more context here, @danharrin? 🙂

@danharrin
Copy link
Member Author

This library was the original suggestion for implementation https://refreshless.com/nouislider/

@danharrin
Copy link
Member Author

I'm happy to do the bulk of the work as long as you take a look at the design

@zepfietje
Copy link
Member

Why not use the native HTML slider?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range

@danharrin
Copy link
Member Author

I don't think you can add multiple points onto that

@binaryfire
Copy link
Contributor

@zepfietje Yeah the native slider has a fair few limitations vs noUi. noUi has multiple points, better step options, much smoother touch functionality etc.

Also a big plus is the events. You’d need to implement some custom debounce logic to avoid the same DDoS problem the color picker had (where updates were sent for every tiny movement). noUi has a bunch of events that could be tapped into for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

3 participants