New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

prevent-overscrolling

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prevent-overscrolling

Prevents scroll events from overflowing down to parent elements

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

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

Keywords

overscroll

FAQs

Package last updated on 13 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts