Skip to content

docccdev/react-overflow-scrolling

Repository files navigation

react-overflow-scrolling

Stop propagation body scroll

npm

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

Demo

https://docccdev.github.io/react-overflow-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>
        );
    }
}

About

Stop propagation body scroll

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •