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 23f5130 + 4b78739 commit 7c7b7c8Copy full SHA for 7c7b7c8
src/controllers/Lane.js
@@ -26,7 +26,8 @@ class Lane extends Component {
26
const node = evt.target
27
const elemScrollPosition = node.scrollHeight - node.scrollTop - node.clientHeight
28
const {onLaneScroll} = this.props
29
- if (elemScrollPosition <= 0 && onLaneScroll && !this.state.loading) {
+ // In some browsers and/or screen sizes a decimal rest value between 0 and 1 exists, so it should be checked on < 1 instead of < 0
30
+ if (elemScrollPosition < 1 && onLaneScroll && !this.state.loading) {
31
const {currentPage} = this.state
32
this.setState({loading: true})
33
const nextPage = currentPage + 1
0 commit comments