rochal / jQuery-slimScroll

small jQuery plugin that transforms any div into a scrollable area with a nice scrollbar. Demo and more:
http://rocha.la/jQuery-slimScroll
2.23k stars 927 forks source link

Accessibility: Support for keyboard events #191

Open amharik opened 9 years ago

amharik commented 9 years ago

Currently keyboard events / and PageUp / PageDown are not handled, which is an accessibility issue

amharik commented 9 years ago

added a pull request #192 for this issue e67d9eb

esoyke commented 8 years ago

Bless you, aharikrishnan!

esoyke commented 8 years ago

I recommend expanding the possible keys in the switch, I ran into some problems testing across Mac/Windows and different browsers. It was fixed by adding support for Up, ArrowUp, Down, ArrowDown.

          case 38:
          case 'ArrowUp':
          case 'Up':
            scrollContent(-delta, true);
            break;
          case 40:
          case 'ArrowDown':
          case 'Down':
            scrollContent(delta, true);
            break;
vylan commented 7 years ago

https://github.com/kamlekar/slim-scroll is a better choice.