From 7507f81c34d814fa7f2c44c4c4f87bd1115f8d5f Mon Sep 17 00:00:00 2001 From: "junghoon86.park" Date: Mon, 8 Dec 2025 17:05:50 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=83=81=ED=92=88=EC=83=81=EC=84=B8=20?= =?UTF-8?q?=ED=8F=AC=EC=BB=A4=EC=8A=A4=20=EC=88=98=EC=A0=95]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 영상 존재시 영상으로 포커스 , 이외에는 상품 이미지 첫번째로 포커스가도록 수정. --- .../ProductAllSection/ProductAllSection.jsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx index d2ef0eec..aace37b5 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx @@ -322,12 +322,17 @@ export default function ProductAllSection({ if (!container) return; if (typeof container.scrollTo === 'function') { scrollTop({ y: 0, animate: true }); - const timeOut = setTimeout(()=>{ - Spotlight.focus("product-detail-container-0"); + setTimeout(()=>{ + if(hasVideo){ + Spotlight.focus("product-video-player"); + } else { + Spotlight.focus("product-detail-container-0"); + } },100); } }, [ - scrollTop + scrollTop, + hasVideo ]); useEffect(() => { @@ -1784,7 +1789,7 @@ export default function ProductAllSection({ id="product-details-section" ref={productDetailRef} onFocus={() => handleButtonFocus('product')} - onBlur={handleButtonBlur} + onBlur={handleButtonBlur} > {/* 비디오가 있으면 먼저 렌더링 (productVideoVersion이 3이 아닐 때만) */} {hasVideo && renderItems[0].type === 'video' && productVideoVersion !== 3 && (