react-overflow-scrolling

Stop propagation body scroll

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-overflow-scrolling
13141.0.15 years ago8 years agoMinified + gzip package size for react-overflow-scrolling in KB

Readme

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