jquery-prevent-scroll-keys
v1.0.1
Published
Prevent scrolling when pressing any scroll key (e.g. down arrow, spacebar) when on a widget
Maintainers
Readme
jquery-prevent-scroll-keys
Prevent scrolling when pressing any scroll key (e.g. down arrow, spacebar) with focus on given selector.
$(delegateSelector).preventScrollKeys(delegateDescendantSelector);Install
npm install jquery-prevent-scroll-keysExample
$('.tabs').preventScrollKeys('[role=tab]');Dependencies
Development
Useful NPM task runners:
npm startfor local browser-sync development.npm testruns tests & generates reports (see reports section below)npm run tddtest driven development: watches code and re-tests after any changenpm run buildcleans, lints, tests and minifies
Execute npm run to view all available CLI scripts.
Reports
Each test run will generate the following reports:
/test_reports/coveragecontains Istanbul code coverage report/test_reports/htmlcontains HTML test report/test_reports/junitcontains JUnit test report
CI Build
https://travis-ci.org/makeup-jquery/jquery-prevent-scroll-keys
Code Coverage
https://coveralls.io/github/makeup-jquery/jquery-prevent-scroll-keys?branch=master
