mint-ui / mint-loadmore

A two-direction mobile load-more component for vue.js
MIT License
315 stars 102 forks source link

在IOS中发现一个BUG #9

Closed nim888 closed 8 years ago

nim888 commented 8 years ago

ios 系统浏览器高度+反弹高度是不会等于 document.body.scrollHeight,在这个方法中checkBottomReached做了以下优化:

document.body.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight : this.$el.getBoundingClientRect().bottom <= this.scrollEventTarget.getBoundingClientRect().bottom

Leopoldthecoder commented 8 years ago

Fixed in https://github.com/ElemeFE/mint-ui/pull/148

nightost commented 7 years ago

好像部分页面会出现scrollHeight === scrollTop + innerHeight + 1的情况,不知道这是如何解释的