1.0.1 • Published 5 years ago

react-overflow-scrolling v1.0.1

Weekly downloads
1,180
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago