소스 검색

滚动更多

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