Skip to content

Commit

Permalink
Fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
maslianok committed Aug 29, 2017
1 parent 0b97752 commit 40e7a4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ResizeDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ export default class ResizeDetector extends Component {
});
}

handleScroll() {
handleScroll(e) {
if (typeof window === 'undefined') {
return;
}

e.preventDefault();
e.stopPropagation();

const { state } = this;

const [width, height] = this.containerSize();
Expand Down

0 comments on commit 40e7a4e

Please sign in to comment.