addMore () {
this.isChangeColor = false
let offsetHeight = document.documentElement.scrollHeight || document.body.scrollHeight
let offsetTop = document.documentElement.scrollTop || document.body.scrollTop
let clientHeight = document.documentElement.clientHeight || document.body.clientHeight
if (this.pageNum >= this.pdfDoc.numPages) {
return
}
if (offsetHeight - offsetTop - clientHeight <= 30) {
this.onNextPage()
}
}
滚动
最新推荐文章于 2022-04-24 14:18:47 发布