Skip to content

HotCustard/react-overflow-scrolling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-overflow-scrolling

Fix ios overflow scrolling in absolute/fixed block

[npm version] (https://www.npmjs.com/package/react-overflow-scrolling)

Installation

$ npm install react-overflow-scrolling

Usage

CSS

.overflow-scrolling {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

JSX

import OverflowScrolling from 'react-overflow-scrolling';

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

export default MyComponent;

About

Fix ios overflow scrolling in absolute/fixed block

Resources

License

Stars

Watchers

Forks

Packages

No packages published