1.1.2 • Published 7 years ago

window-state v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

WindowState

Travis npm package

In an idea taken from react-virtualized, all of the scroll events are handled by ONE listener.

Each instance of the component does have a resize listener

<WindowState includeScrollbars={false}>
  ({ scrollTop, winHeight, winWidth }) => {
    console.log(scrollTop)
    return (<div style={{ height: winHeight, width: winWidth }} />)
  }
</WindowState>