question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Specify step size when using keyboard to change slider handle

See original GitHub issue

Great 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.

2019-06-12_12-10-47

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leongersencommented, Aug 12, 2021

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.

0reactions
github-actions[bot]commented, May 25, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found