Skip to content

Commit

Permalink
* [html5] fix loadmoreoffset
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaindrop committed Sep 1, 2016
1 parent ff4cf67 commit 3c7e262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/browser/base/droot.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const proto = {
window.addEventListener('scroll', function (e) {
// fire loadmore event.
const body = document.body
const leftDist = body.scrollHeight - body.getBoundingClientRect().height - body.scrollTop
const leftDist = body.scrollHeight - window.innerHeight - body.scrollTop
if (leftDist <= this.loadmoreoffset && this.isAvailableToFireloadmore) {
this.isAvailableToFireloadmore = false
this.dispatchEvent('loadmore')
Expand Down

0 comments on commit 3c7e262

Please sign in to comment.