[FIX] 캐러셀 모바일 뷰 이슈#280
Conversation
- 커스텀 핸들러가 isDragging 플래그를 공유하면서 스크롤 위치를 강제로 덮어써 모바일 스크롤 가속과 충돌하던 부분을 해결했습니다.
- RecruitingGroupCarousel 방식과 동일하게 로직 수정
|
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
둘러보기캐러셀 컴포넌트에서 터치 이벤트 핸들링을 제거하고, GPU 가속을 위한 CSS 변환을 추가했습니다. 또한 useInfiniteCarousel 훅의 초기 스크롤 계산에 requestAnimationFrame을 추가하고 리사이즈 디바운싱을 구현했으며, 그룹 검색 페이지의 loadMore 함수 로직을 개선했습니다. 변경 사항
Sequence Diagram(s)sequenceDiagram
participant Mount as Component<br/>Mount
participant RAF as requestAnimationFrame
participant Layout as Layout
participant ScrollHandler as handleScroll
participant Timeout as setTimeout<br/>(100ms)
Mount->>RAF: scheduleRAF for<br/>initial scroll
RAF->>Layout: wait for layout
Layout->>ScrollHandler: trigger scroll<br/>calculation
Mount->>Timeout: also schedule<br/>setTimeout 100ms
Timeout->>ScrollHandler: secondary<br/>trigger (fallback)
Note over RAF,Timeout: Cleanup on unmount:<br/>cancel RAF + timeout
sequenceDiagram
participant Carousel as CarouselComponent
participant ResizeListener as Resize<br/>Listener
participant Debouncer as Resize<br/>Debouncer
Carousel->>ResizeListener: attach resize listener<br/>(150ms debounce)
alt Rapid Resizes
ResizeListener->>Debouncer: clear previous<br/>resizeTimer
ResizeListener->>Debouncer: schedule new<br/>initializeScroll
end
Note over Carousel,Debouncer: Single initializeScroll call<br/>after 150ms no-resize window
추정 코드 리뷰 노력🎯 3 (Moderate) | ⏱️ ~20분 관련 가능 이슈
관련 가능 PR
제안 검토자
시
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code graph analysis (1)src/pages/groupSearch/GroupSearch.tsx (1)
🔇 Additional comments (7)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
#️⃣연관된 이슈
[FIX] 10월 3주차 QA 사항 - 호준 #279
📝작업 내용
캐러셀 모바일 뷰 이슈
pc환경에서는 문제가 없지만 모바일 뷰에서 캐러셀이 부드럽지 않게 동작하는 버그를 확인해 수정했습니다.
pc 동작
default.mov
pc 모바일 뷰 동작
default.mp4
모바일 동작
default.mp4
코드 개선 후 동작
default.mov
배포 후 모바일 뷰 동작
default.mp4
다른 메모리 관련 수정사항도 추가했습니다.
Summary by CodeRabbit
릴리스 노트
버그 수정
성능 개선