微调
This commit is contained in:
tangly1024
2021-12-20 11:30:38 +08:00
parent 2b47ff626c
commit 44121bf50b
5 changed files with 5 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory,
const scrollTrigger = useCallback(throttle(() => {
const scrollS = window.scrollY + window.outerHeight
const clientHeight = targetRef ? (targetRef.current ? (targetRef.current.clientHeight) : 0) : 0
if (scrollS > clientHeight + 10) {
if (scrollS > clientHeight + 100) {
handleGetMore()
}
}, 500))