-
Notifications
You must be signed in to change notification settings - Fork 114
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 snaps on manually setting a value between steps #224
Comments
I am having this same issue. From leongersen : "As of noUiSlider 14.6.2 (just released), you can use the exactInput argument to the set method to bypass the slider stepping." Is this going to carry over? |
Hi @tcernera , glad that my PR could help people! I just checked package.json in this project, nouislider is required to be later than version 9.x in peerDependencies, so I guess the changes will be carried over.
|
@tenglongroy I am having some trouble actually implementing this. Any suggestions? Here is a stackblitz with a use case https://stackblitz.com/edit/angular-6-nouislider-fdgktg?file=app%2Fslider-overview-example.ts |
This issue is carried from the nouislider.js package.
The behaviour I need from the slider is described here: leongersen/noUiSlider#436 (comment)
To be specific, I need the NoUiSlider able to get input value between steps. For example, see below my code, if I want to manually type a number of 7500 in , then NoUiSlider will automatically set the value to 10000. If I set the step to be 1, then the performance of dragging the handle becomes unacceptable.
The link above shows a good solution, by having an extra option 'exactInput' to allow for exact value between steps. But ng2-nouislider wraps nouislider.js already, how can I change the source code of nouislider.js? And presumably I manage to change the source code in nouislider.js, it changes still won't be carried over to Azure DevOps, so it's a dead end?
My code is as below
The text was updated successfully, but these errors were encountered: