diff options
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r-- | vnext/src/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js index 0a8eb369..5bf7c021 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -28,7 +28,9 @@ class App extends React.Component { this.wScrollCurrent = 0; this.wScrollBefore = 0; this.wScrollDiff = 0; + } + componentDidMount() { window.addEventListener('scroll', this.throttle(500, () => { this.dHeight = document.body.offsetHeight; this.wHeight = window.innerHeight; |