We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2923b43 + 438fdb7 commit 8bc55caCopy full SHA for 8bc55ca
src/index.js
@@ -1,4 +1,4 @@
1
-import React, {Component} from 'react';
+import React, { Component } from 'react';
2
import PropTypes from 'prop-types';
3
import ReactDOM from 'react-dom';
4
import omit from 'lodash.omit';
@@ -74,9 +74,9 @@ class ScrollTrigger extends Component {
74
if (inViewport) {
75
const progress = Math.max(0, Math.min(1, 1 - (elementRect.bottom / (viewportEnd + elementRect.height))));
76
77
- if (!this.state.inViewPort) {
+ if (!this.state.inViewport) {
78
this.setState({
79
- inViewport: inViewport,
+ inViewport,
80
});
81
82
onEnter({
0 commit comments