react-compound-slider
react-compound-slider copied to clipboard
Slider mode 3 can cross by keyboard if step is below 1
Problem or feature description:
If the step is below 1 and not a number that has an exact floating point representation eg. 0.5 or 0.25 (for example, 0.1), then a slider can be moved passed another by keyboard.
Steps to reproduce (for problems):
- create a slider with these parameters:
<Slider mode={3} step={0.1} domain={[0,100]} values={[0, 10.5]}>
- Move left slider with mouse first
- try to move left slider past right slider by keyboard
Versions (for problems):
React-Compound-Slider: v2.2.0
React: 16.8.6
Browser: Chrome 76
Operating System: Windows 10
Hi there. Interesting. I'll have to take a look at this. If anyone wants to do a PR on this issue please let me know. I probably won't look at this until the weekend.