From 25846f858b1b83c7d511c508b1482079ea699554 Mon Sep 17 00:00:00 2001 From: Satyanarayana Ruppa <76739349+satya-imaginea@users.noreply.github.com> Date: Fri, 25 Jun 2021 10:00:15 +0530 Subject: [PATCH] Update Lane.js I think I don't have permission to raise PR to this branch. Would you release this change, this should fix the 'onLaneScroll callback has not been triggered' issue permanently. --- src/controllers/Lane.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/Lane.js b/src/controllers/Lane.js index 3a8303a8..d6860e28 100644 --- a/src/controllers/Lane.js +++ b/src/controllers/Lane.js @@ -26,8 +26,8 @@ class Lane extends Component { const node = evt.target const elemScrollPosition = node.scrollHeight - node.scrollTop - node.clientHeight const {onLaneScroll} = this.props - // 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 - if (elemScrollPosition < 1 && 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 + if (elemScrollPosition <= 1 && onLaneScroll && !this.state.loading) { const {currentPage} = this.state this.setState({loading: true}) const nextPage = currentPage + 1