vue-prevent-parent-scroll

A Vue directive that prevents vertical scrolling outside the current element when top or bottom are reached.
15,247 20
Install
npm install vue-prevent-parent-scroll
Latest Version:1.0.5
License:ISC
Last Updated:Feb 8, 2018
Links: GitHub  ·  npm
Maintainer: rhyek

Description

A Vue directive that prevents vertical scrolling outside the current element when top or bottom are reached.

Installation

npm install --save vue-prevent-parent-scroll

Example

import Vue from 'vue'

Vue.use(require('vue-prevent-parent-scroll'))
<div id="parent">
  <div id="scrollable-child" v-prevent-parent-scroll>
  </div>
</div>

Related Packages

vue-scroll

scroll directive for vuejs 2.0

345,040 242
@centaurea/vue3-scroll

vue 3 version of vue-scroll

2,682 1
v-scroll-threshold

A vue directive that accepts a threshold value and a callback function that tell...

31,165 1
vue3-chat-scroll

Vue directive to keep things scrolled to the bottom

20,446 1
@koas/v-hscroll

Vue directive thay enables mouse wheel horizontal scrolling on any element

6,804 8

Version History

Version Released License
1.0.5 ISC
1.0.4 ISC
1.0.3 ISC
1.0.2 ISC
1.0.1 ISC