# prevent-parent-scroll

> placeholder

Latest version **0.0.6** (published 2016-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install prevent-parent-scroll
pnpm add prevent-parent-scroll
yarn add prevent-parent-scroll
bun add prevent-parent-scroll
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2016-11-16 |
| First published | 2016-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.3.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | anthonyl |
| Keywords | prevent, parent, scroll, mousewheel |

## Links

- npm: https://www.npmjs.com/package/prevent-parent-scroll
- Repository: https://github.com/aliatsis/prevent-parent-scroll
- Homepage: https://github.com/aliatsis/prevent-parent-scroll#readme
- Issues: https://github.com/aliatsis/prevent-parent-scroll/issues
- npm.io page: https://npm.io/package/prevent-parent-scroll

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.0.6 (latest) — 2016-11-16
- 0.0.5 — 2016-11-16
- 0.0.4 — 2016-11-16
- 0.0.3 — 2016-11-02
- 0.0.2 — 2016-10-12
- 0.0.1 — 2016-10-12
- 0.0.0 — 2016-10-12

## README

# prevent-parent-scroll

##Description:
Prevent scroll of an HTML Element from bubbling to its parents.
It is vanilla JS and Typescript compatible.

##Install:
```
npm i --save prevent-parent-scroll
```

##Usage:

```
// ES6 import
import PreventParentScoll from 'prevent-parent-scroll';

// ES5 import
var PreventParentScoll = require('prevent-parent-scroll').default;

// use your own scrolling element
let scrollingElement = document.querySelector('.my-scrolling-element');

// initialize the PreventParentScoll class by pasing the scrolling element
let preventParentScroll = new PreventParentScoll(scrollingElement);

// start() will set up event bindings and begin preventing mousewheel events from bubbling at scroll boundaries
let preventParentScroll.start();

// stop() will remove all event bindings and stop preventing mousewheel events from bubbling at scroll boundaries
let preventParentScroll.stop();

```

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