Skip to content

Commit 8bc55ca

Browse files
authored
Merge pull request #4 from ryanhefner/develop
v0.1.4
2 parents 2923b43 + 438fdb7 commit 8bc55ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {Component} from 'react';
1+
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import ReactDOM from 'react-dom';
44
import omit from 'lodash.omit';
@@ -74,9 +74,9 @@ class ScrollTrigger extends Component {
7474
if (inViewport) {
7575
const progress = Math.max(0, Math.min(1, 1 - (elementRect.bottom / (viewportEnd + elementRect.height))));
7676

77-
if (!this.state.inViewPort) {
77+
if (!this.state.inViewport) {
7878
this.setState({
79-
inViewport: inViewport,
79+
inViewport,
8080
});
8181

8282
onEnter({

0 commit comments

Comments
 (0)