import * as React from "react"

export default class FixScroll extends React.Component {
  public componentDidMount() {
    const _document: any = document
    _document.body.style.overflow = "hidden"
    _document.body.WebkitOverflowScrolling = "auto"
  }
  public componentWillUnmount() {
    const _document: any = document
    _document.body.style.overflow = "auto"
    _document.body.WebkitOverflowScrolling = "touch"
  }
  public render() {
    return null
  }
}
