@ventralnet/vue3-prevent-parent-scroll

0.0.1 • Public • Published

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>

Package Sidebar

Install

npm i @ventralnet/vue3-prevent-parent-scroll

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

13.5 kB

Total Files

7

Last publish

Collaborators

  • ventralnet1