Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 읽지 않은 메세지의 갯수가 적을 때, 자동 스크롤링 이후의 화면이 부자연스러운 현상을 수정합니다. #439

Open
1 task
wontaeyoung opened this issue Jun 2, 2023 · 0 comments
Assignees
Labels
✨ Feature New feature or request 🛠️ Fix 기존 구현된 코드 수정

Comments

@wontaeyoung
Copy link
Contributor

📝 작업 목적

  • 현재는 읽지 않은 메세지의 첫 버블이 상단에 위치하는 앤커 지점으로 스크롤링
  • 읽지 않은 메세지 버블의 갯수가 적은 경우, 마지막 메세지 버블 아래로 공백이 발생
  • 유저 제스처 직후 강제로 하단 공백이 사라지는 듯한 스크롤 동작 발생

예상 해결 방안

  • 읽지 않은 메세지 버블의 갯수 + 간격을 계산 -> 필요 높이
  • 메세지 버블이 위치하는 section의 높이를 기기 사이즈 height를 통해서 계산 -> 가용 높이
  • 필요 높이가 가용 높이보다 작은 경우 마지막 메세지 버블이 하단 앤커에 걸리는 위치로 스크롤하도록 분기처리

🛠️ Tasks

  • 추가 예정
@wontaeyoung wontaeyoung added ✨ Feature New feature or request 🛠️ Fix 기존 구현된 코드 수정 labels Jun 2, 2023
@wontaeyoung wontaeyoung self-assigned this Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature or request 🛠️ Fix 기존 구현된 코드 수정
Projects
None yet
Development

No branches or pull requests

1 participant