aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-20 10:15:31 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commitfd18ac5cd96f76a39de57bb6a877d3f0faf7c528 (patch)
tree21744e1a82b15213793b3b81489afa02d5a776f5 /vnext/src/index.js
parent95f9a337435091188b02d4545b7507f47fef34cc (diff)
refactoring
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js2
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;