diff --git a/src/InfiniteScroll.js b/src/InfiniteScroll.js index 2696d46..cd598ce 100644 --- a/src/InfiniteScroll.js +++ b/src/InfiniteScroll.js @@ -168,6 +168,7 @@ export default class InfiniteScroll extends Component { // Here we make sure the element is visible as well as checking the offset if ( + offset > 0 && offset < Number(this.props.threshold) && (el && el.offsetParent !== null) ) {