Skip to content

Commit

Permalink
Fixed a vertical scrolling warning that occurred in Google Chrom… (#237)
Browse files Browse the repository at this point in the history
Fixed a vertical scrolling warning that occurred in Google Chrome.
  • Loading branch information
danbovey authored Nov 18, 2019
2 parents 54d7b16 + 4ee749d commit 1d6d5a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/InfiniteScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export default class InfiniteScroll extends Component {
useCapture: this.props.useCapture,
passive: true
};
} else {
options = {
passive: false
};
}
return options;
}
Expand Down

0 comments on commit 1d6d5a1

Please sign in to comment.