Nutritious Pomegranate Muffins

    prevent-overscrolling
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    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);

    Install

    npm i prevent-overscrolling

    DownloadsWeekly Downloads

    189

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    47 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar