cato.js
cato.js copied to clipboard
Keyboard controls are inverted on vertical sliders
Describe the bug The keyboard controls are inverted on vertical sliders due to the rotate(90deg) style attribute. If you change it to -90deg the indicator works as expected but now the slider flips its direction.
To Reproduce Steps to reproduce the behavior:
- Focus the range input
- Use the arrow keys to navigate the slider
- See error
Expected behavior The slider needs appropriate keyboard support. Pressing the up arrow key ↑ should move the slider and it's indicator up, the down arrow key ↓ should do the opposite.