Prevent scrolling when pressing any scroll key (e.g. down arrow, spacebar) when on a widget
npm install jquery-prevent-scroll-keysPrevent scrolling when pressing any scroll key (e.g. down arrow, spacebar) with focus on given selector.
``js`
$(delegateSelector).preventScrollKeys(delegateDescendantSelector);
`js`
npm install jquery-prevent-scroll-keys
`js`
$('.tabs').preventScrollKeys('[role=tab]');
* jquery
Useful NPM task runners:
* npm start for local browser-sync development.npm test
* runs tests & generates reports (see reports section below)npm run tdd
* test driven development: watches code and re-tests after any changenpm run build
* cleans, lints, tests and minifies
Execute npm run to view all available CLI scripts.
Each test run will generate the following reports:
* /test_reports/coverage contains Istanbul code coverage report/test_reports/html
* contains HTML test report/test_reports/junit` contains JUnit test report
*
https://travis-ci.org/makeup-jquery/jquery-prevent-scroll-keys
https://coveralls.io/github/makeup-jquery/jquery-prevent-scroll-keys?branch=master