Skip to content

scroll 위치 측정 시 미세한 값 차이 발생 #639

Answered by woohm402
JiyeonP asked this question in Q&A
Discussion options

You must be logged in to vote
  1. scrollTop은 항상 integer value일 텐데, 혹시 어떤 브라우저에서 구현 중이시고 어떤 값을 출력하셨나요?
  2. 꼭 그거 때문이 아니더라도 항상 scrollTop + clientHeight >= scrollHeight 이렇게 스크롤 끝에 도달했을 때를 정확하게 체크하지는 않습니다. 좋은 사용자 경험을 위해 scrollTop + clientHeight >= scrollHeight - 500 이렇게 충분한 n픽셀 전에 다음 페이지를 로드하는 것도 좋습니다.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JiyeonP
Comment options

JiyeonP Nov 5, 2021
Collaborator Author

@woohm402
Comment options

@JiyeonP
Comment options

JiyeonP Nov 5, 2021
Collaborator Author

Answer selected by woohm402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
React React 관련 내용 question 질문으로 사용될 이슈
2 participants