2.0.5 • Published 5 years ago

vue-prevent-overscroll.js v2.0.5

Weekly downloads
35
License
MIT
Repository
github
Last release
5 years ago

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:

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.

<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>
2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago