[251118] fix: HomePanel Video복원조건

🕐 커밋 시간: 2025. 11. 18. 12:13:36

📊 변경 통계:
  • 총 파일: 1개
  • 추가: +1줄
  • 삭제: -1줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/HomePanel/HomePanel.jsx

🔧 주요 변경 내용:
  • 코드 정리 및 최적화
This commit is contained in:
2025-11-18 12:13:36 +09:00
parent 604b4c6404
commit 29c7e4a911

View File

@@ -483,7 +483,7 @@ const HomePanel = ({ isOnTop }) => {
const prevScrollTop = prevScrollTopRef.current; const prevScrollTop = prevScrollTopRef.current;
// ✅ 최상단 도달: 1px 비디오 복구 시도 (shouldShrinkRef.current로 읽음) // ✅ 최상단 도달: 1px 비디오 복구 시도 (shouldShrinkRef.current로 읽음)
if (currentScrollTop <= 1) { if (currentScrollTop <= 0) {
if (shouldShrinkRef.current && !expandIntervalRef.current) { if (shouldShrinkRef.current && !expandIntervalRef.current) {
// console.log('[HomePanel] At top (scrollTop <= 1) - starting video expansion'); // console.log('[HomePanel] At top (scrollTop <= 1) - starting video expansion');
expandAttemptRef.current = 0; expandAttemptRef.current = 0;