Skip to content

Commit 20fe412

Browse files
Fix onLaneScroll not working on different screen sizes #422
#422
1 parent 1cf8fd4 commit 20fe412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/Lane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Lane extends Component {
2626
const node = evt.target
2727
const elemScrollPosition = node.scrollHeight - node.scrollTop - node.clientHeight
2828
const {onLaneScroll} = this.props
29-
if (elemScrollPosition <= 0 && onLaneScroll && !this.state.loading) {
29+
if (elemScrollPosition <= 1 && onLaneScroll && !this.state.loading) {
3030
const {currentPage} = this.state
3131
this.setState({loading: true})
3232
const nextPage = currentPage + 1

0 commit comments

Comments
 (0)