# vue-prevent-overscroll.js

> A directive supported plugin for prevent overscroll when scroll on a fixed/absolute DOM in Vue.js components.

Latest version **2.0.5** (published 2019-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-prevent-overscroll.js
pnpm add vue-prevent-overscroll.js
yarn add vue-prevent-overscroll.js
bun add vue-prevent-overscroll.js
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2019-09-18 |
| First published | 2019-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 0 |
| Unpacked size | 38.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Emil Zhai |
| Maintainers | tinymins |
| Keywords | vue, dom, prevent-overscroll |

## Links

- npm: https://www.npmjs.com/package/vue-prevent-overscroll.js
- Repository: https://github.com/tinymins/vue-prevent-overscroll.js
- Homepage: https://github.com/tinymins/vue-prevent-overscroll.js#readme
- Issues: https://github.com/tinymins/vue-prevent-overscroll.js/issues
- npm.io page: https://npm.io/package/vue-prevent-overscroll.js

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.0.5 (latest) — 2019-09-18
- 2.0.4 — 2019-06-28
- 2.0.3 — 2019-06-28
- 2.0.2 — 2019-03-21
- 2.0.1 — 2019-03-21

## README

# vue-prevent-overscroll.js

A directive supported plugin for prevent overscroll when scroll on a fixed/absolute DOM in Vue.js components.

## install

> npm i vue-prevent-overscroll.js -s

Import prevent-overscroll component before create `Vue` instance:

```js
import PreventOverscroll from 'vue-prevent-overscroll.js';

Vue.use(PreventOverscroll);

// ...
new Vue({
  render: h => h(App),
}).$mount('#app');
```

## usage

You can simply add a directive tag to start using.

```html
<div>
  This div may contains a scroll bar, and not want to be affected by popup layer.
  <div v-prevent-overscroll>Scroll in this area (popup layer) will never affect body scroll bar.</div>
</div>
```

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