Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
makeup-prevent-scroll-keys
Advanced tools
Prevents default scroll event when pressing down arrow, page down, spacebar, etc.
A vanilla JavaScript port of jquery-prevent-scroll-keys.
This module prevents the default scroll event when pressing down arrow, page down, spacebar, etc. This behaviour is required for ARIA widgets such as menu, tabs and comboboxes. See eBay MIND Patterns for further information.
This module is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible.
// via npm
npm install makeup-prevent-scroll-keys
// via yarn
yarn add makeup-prevent-scroll-keys
// require the module
const scrollKeyPreventer = require('makeup-prevent-scroll-keys');
// get element reference
const widgetEl = document.querySelector('.widget');
// execute
scrollKeyPreventer.add(el);
// to remove
scrollKeyPreventer.remove(el);
None
None
None
npm start
npm test
npm run lint
npm run fix
npm run build
npm run clean
The following hooks exist, and do not need to be invoked manually:
npm prepublishOnly
cleans, lints, tests and builds on every npm publish
commandpre-commit
cleans, lints, tests and builds on every git commit
commandEach test run will generate the following reports:
/reports/coverage
contains Istanbul code coverage report/reports/html
contains HTML test reporthttps://travis-ci.org/makeup-js/makeup-prevent-scroll-keys
https://coveralls.io/github/makeup-js/makeup-prevent-scroll-keys
FAQs
Prevents default scroll event when pressing down arrow, page down, spacebar, etc.
The npm package makeup-prevent-scroll-keys receives a total of 62 weekly downloads. As such, makeup-prevent-scroll-keys popularity was classified as not popular.
We found that makeup-prevent-scroll-keys demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.