-
과제4의 페이지네이션 구현 도중 scroll이 끝까지 내려갔는지 구현하는 부분에서 문제가 발생하여 질문 드립니다. |
Beta Was this translation helpful? Give feedback.
Answered by
woohm402
Nov 5, 2021
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
woohm402
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scrollTop + clientHeight >= scrollHeight
이렇게 스크롤 끝에 도달했을 때를 정확하게 체크하지는 않습니다. 좋은 사용자 경험을 위해scrollTop + clientHeight >= scrollHeight - 500
이렇게 충분한 n픽셀 전에 다음 페이지를 로드하는 것도 좋습니다.