Fix ios overflow scrolling in absolute/fixed block
[] (https://www.npmjs.com/package/react-overflow-scrolling)
$ npm install react-overflow-scrolling
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;