Ver Fonte

滚动更多

wgl há 4 anos atrás
pai
commit
ba18e8e8c0
1 ficheiros alterados com 1 adições e 1 exclusões
  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