Feature request: Specify step size when using keyboard to change slider handle
See original GitHub issueGreat to see the build in keyboard support added in noUiSlider version 13.0.0. However when the slider has a very small step size (e.g. 0.001) it might not be ideal to use the default step size when using keyboard arrows.
In that scenario it would be great to have an property (or function) to override the step size, when using keyboard arrows.
For example you might have a slider with min="0"
, max="2"
and step="0.001"
, but when using keyboard arrows it would be okay to change the handle with a step size of 0.01
or 0.1
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Zoom slider length - Feature request - Tropy
You can zoom with Cmd/Ctrl +/- but the default step size is larger than what the slider gives you; we'll think of a...
Read more >noUiSlider - Options and settings - Refreshless.com
For a complete overview of all slider options, method and properties, see reference. Start; Connect; Margin; Limit; Padding; Step; Orientation; Direction ...
Read more >ARIA Slider, Part 3 - TPGi
To change the stepsize, you can use the 'changeStepSize()' method. This method can be called either on a double slider object (to change...
Read more >Slider | API Reference | ArcGIS Maps SDK for JavaScript 4.25
A slider widget that can be used for filtering data, or gathering numeric input from a user. The slider can have multiple thumbs,...
Read more >Slider Class (Windows.UI.Xaml.Controls) - Microsoft Learn
Use a Slider control when you want your users to be able to set defined, contiguous values (such as volume or brightness) or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
noUiSlider 15.3.0 adds a
keyboardMultiplier
option (#1151), which could be set to 10 or 100 to multiply the step of 0.001 in the example to 0.01 or 0.1. I considered the callback feature as described earlier, but I think this simpler solution should be enough in the majority of use cases.This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.