# makeup-prevent-scroll-keys

> Prevents default scroll event when pressing down arrow, page down, spacebar, etc.

Latest version **0.4.0** (published 2026-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install makeup-prevent-scroll-keys
pnpm add makeup-prevent-scroll-keys
yarn add makeup-prevent-scroll-keys
bun add makeup-prevent-scroll-keys
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-03-31 |
| First published | 2017-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 47 |
| Author | Ian McBurnie |
| Maintainers | dylanpiercey, sendlo, ianmcburnie, agliga, saiponnada, artblue, lulavalva |
| Keywords | makeup, ebay, accessibility, a11y |

## Links

- npm: https://www.npmjs.com/package/makeup-prevent-scroll-keys
- Repository: https://github.com/makeup/makeup-js.git#master
- Homepage: https://github.com/makeup/makeup-js/tree/master#readme
- Issues: https://github.com/makeup/makeup-js/issues
- npm.io page: https://npm.io/package/makeup-prevent-scroll-keys

## Recent versions

- 0.4.0 (latest) — 2026-03-31
- 0.3.5 — 2026-01-14
- 0.3.4 — 2025-04-04
- 0.3.3 — 2024-12-20
- 0.3.2 — 2024-11-22
- 0.3.1 — 2024-09-03
- 0.3.0 — 2024-06-23
- 0.2.2 — 2024-06-17
- 0.2.1 — 2022-11-26
- 0.2.0 — 2022-02-02
- 0.1.1 — 2021-07-26
- 0.1.0 — 2021-07-10
- 0.0.4 — 2020-03-10
- 0.0.3 — 2019-05-07
- 0.0.2 — 2018-03-26
- … 1 more at https://npm.io/package/makeup-prevent-scroll-keys/versions

## README

# makeup-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](https://ebay.gitbooks.io/mindpatterns/content/) for further information.

## Experimental

This module is still in an experimental state, until it reaches v1 you must consider all minor releases as breaking changes.

## Example

```js
import * as scrollKeyPreventer from "makeup-prevent-scroll-keys";

const widgetEl = document.querySelector(".widget");

scrollKeyPreventer.add(widgetEl);

// to remove
scrollKeyPreventer.remove(widgetEl);
```

---
_Source: https://npm.io/package/makeup-prevent-scroll-keys · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
