Socket
Socket
Sign inDemoInstall

react-overflow-scrolling

Package Overview
Dependencies
7
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-overflow-scrolling

Stop propagation body scroll


Version published
Weekly downloads
2.2K
increased by52.31%
Maintainers
1
Install size
514 kB
Created
Weekly downloads
 

Changelog

Source

1.0.1

  • Fix error Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'
  • Update devDependencies

Readme

Source

react-overflow-scrolling

Stop propagation body scroll

npm

Demo

Auto find children nodes with css property (overflow || overflow-x || overflow-y) and allow native scrolling

Installation

$ npm i react-overflow-scrolling --save

Usage

CSS

.overflow-scrolling {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

JSX

import OverflowScrolling from 'react-overflow-scrolling';

export class ExampleOverflowScrolling extends React.Component {
    render() {
        return (
            <OverflowScrolling className='overflow-scrolling'>
                ...
            </OverflowScrolling>
        );
    }
}

Keywords

FAQs

Last updated on 24 Jul 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc