diff options
author | Vitaly Takmazov | 2018-06-20 10:15:31 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | fd18ac5cd96f76a39de57bb6a877d3f0faf7c528 (patch) | |
tree | 21744e1a82b15213793b3b81489afa02d5a776f5 /vnext/src/index.js | |
parent | 95f9a337435091188b02d4545b7507f47fef34cc (diff) |
refactoring
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; |