diff --git a/ui/src/components/infinite-scroll/QInfiniteScroll.js b/ui/src/components/infinite-scroll/QInfiniteScroll.js index e89242641425..a42800c19680 100644 --- a/ui/src/components/infinite-scroll/QInfiniteScroll.js +++ b/ui/src/components/infinite-scroll/QInfiniteScroll.js @@ -77,14 +77,12 @@ export default Vue.extend({ containerHeight = height(this.__scrollTarget) if (this.reverse === false) { - if (scrollPosition + containerHeight + this.offset >= scrollHeight) { + if (Math.round(scrollPosition + containerHeight + this.offset) >= Math.round(scrollHeight)) { this.trigger() } } - else { - if (scrollPosition < this.offset) { - this.trigger() - } + else if (Math.round(scrollPosition) <= Math.round(this.offset)) { + this.trigger() } },