浏览代码

滚动更多

wgl 4 年之前
父节点
当前提交
ba18e8e8c0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/isReachBottom.js

+ 1 - 1
src/utils/isReachBottom.js

@@ -26,7 +26,7 @@ function isReachBottom() {
 	const winHeight = getWinHeight() // 一屏的高度
 	const scrollHeight = getScrollHeight() // 获取文档总高度
 	console.log('scrollTop:' + scrollTop + '/scrollHeight:' + scrollHeight + '/winHeight:' + winHeight)
-	return scrollTop >= parseInt(scrollHeight) - 10 - winHeight
+	return scrollTop >= parseInt(scrollHeight) - 20 - winHeight
 }
 
 export default isReachBottom