1.1.5 • Published 2 years ago

prevent-overscrolling v1.1.5

Weekly downloads
153
License
MIT
Repository
github
Last release
2 years ago

prevent-overscrolling

Prevents scroll events from overflowing down to parent elements

GitHub release Build Status Codacy Badge

Features

  • Prevents overscrolling on touch devices
  • Prevents overscrolling via mouse wheel
  • Prevents overscrolling via scroll bar

Install

You can install via npm or yarn.

npm

npm install --save prevent-overscrolling

yarn

yarn add prevent-overscrolling

Usage

Importing

You can import using ES6 imports.

import { PreventOverScrolling, EnableOverScrolling } from 'prevent-overscrolling';

Example

const myScrollableElement = document.querySelector('.MyScrollableElement');

ReEnableOverScrolling(myScrollableElement);
1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

3 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago