Spaces:
Paused
Paused
fix(player): 카운트다운 버튼 위 더블탭 +5초 오인식 차단
Browse files증상: 모바일에서 다음화 카운트다운의 취소/지금시청 탭이 안 먹고,
한 번 더 누르면 +5초 토스트가 떠서 5초 점프됨.
원인: wrap의 touchstart/pointerdown 제외 셀렉터 목록(#zoomCtrl,
.skip-btn 등)에 #nextCountdown이 빠져 있었음. 카운트다운 위 첫 탭이
wrap touchstart의 preventDefault에 잡혀 click 합성이 막히고,
두 번째 탭이 더블탭 ±5초로 인식되던 사고.
수정: closest() 셀렉터에 #nextCountdown 추가 (touchstart/pointerdown
양쪽). 카운트다운 자체 click 핸들러가 원래대로 동작.
- index.html +4 -2
index.html
CHANGED
|
@@ -2513,7 +2513,9 @@ function closeAddModal() { $('#addModal').classList.remove('show'); }
|
|
| 2513 |
const t = e.touches[0];
|
| 2514 |
if (!t) return;
|
| 2515 |
// 우리 UI 위에서 시작된 터치는 제외
|
| 2516 |
-
|
|
|
|
|
|
|
| 2517 |
// 두 번째 손가락이 닿는 순간 — 핀치 시작. hold/더블탭 상태 정리하고 우리가 직접 처리.
|
| 2518 |
// (오버레이가 video를 덮고 있어 video의 native 핀치 핸들러까지 이벤트가 안 감)
|
| 2519 |
if (e.touches.length >= 2) {
|
|
@@ -2560,7 +2562,7 @@ function closeAddModal() { $('#addModal').classList.remove('show'); }
|
|
| 2560 |
wrap.addEventListener('pointerdown', (e) => {
|
| 2561 |
if (e.pointerType !== 'mouse') return; // 터치는 위에서 처리
|
| 2562 |
if (e.button !== 0) return;
|
| 2563 |
-
if (e.target.closest('#zoomCtrl, #moreMenu, #btnFsZoom, #btnSideToggle, #pauseOverlay, .skip-btn, .lock-btn, .hls-quality, .hls-audio, .hls-sub')) return;
|
| 2564 |
_holdStart(e.clientX, e.clientY);
|
| 2565 |
}, true);
|
| 2566 |
wrap.addEventListener('pointermove', (e) => {
|
|
|
|
| 2513 |
const t = e.touches[0];
|
| 2514 |
if (!t) return;
|
| 2515 |
// 우리 UI 위에서 시작된 터치는 제외
|
| 2516 |
+
// #nextCountdown 누락 시: wrap touchstart의 preventDefault가 click 합성을 막고 → 두 번째 탭이
|
| 2517 |
+
// 더블탭(+5초)으로 잡혀 카운트다운 버튼 클릭이 영영 안 먹는 사고(2026-06-08). 반드시 포함.
|
| 2518 |
+
if (e.target.closest('#zoomCtrl, #moreMenu, #btnFsZoom, #btnSideToggle, #pauseOverlay, .skip-btn, .lock-btn, .hls-quality, .hls-audio, .hls-sub, #nextCountdown')) return;
|
| 2519 |
// 두 번째 손가락이 닿는 순간 — 핀치 시작. hold/더블탭 상태 정리하고 우리가 직접 처리.
|
| 2520 |
// (오버레이가 video를 덮고 있어 video의 native 핀치 핸들러까지 이벤트가 안 감)
|
| 2521 |
if (e.touches.length >= 2) {
|
|
|
|
| 2562 |
wrap.addEventListener('pointerdown', (e) => {
|
| 2563 |
if (e.pointerType !== 'mouse') return; // 터치는 위에서 처리
|
| 2564 |
if (e.button !== 0) return;
|
| 2565 |
+
if (e.target.closest('#zoomCtrl, #moreMenu, #btnFsZoom, #btnSideToggle, #pauseOverlay, .skip-btn, .lock-btn, .hls-quality, .hls-audio, .hls-sub, #nextCountdown')) return;
|
| 2566 |
_holdStart(e.clientX, e.clientY);
|
| 2567 |
}, true);
|
| 2568 |
wrap.addEventListener('pointermove', (e) => {
|