Skip to content

Commit

Permalink
fix(QInfiniteScroll): round DOM sizes to avoid not triggering quasarf…
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Dec 9, 2021
1 parent d85dbf2 commit b51225d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ui/src/components/infinite-scroll/QInfiniteScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
},

Expand Down

0 comments on commit b51225d

Please # to comment.