[상품상세 포커스 수정]
- 영상 존재시 영상으로 포커스 , 이외에는 상품 이미지 첫번째로 포커스가도록 수정.
This commit is contained in:
@@ -322,12 +322,17 @@ export default function ProductAllSection({
|
|||||||
if (!container) return;
|
if (!container) return;
|
||||||
if (typeof container.scrollTo === 'function') {
|
if (typeof container.scrollTo === 'function') {
|
||||||
scrollTop({ y: 0, animate: true });
|
scrollTop({ y: 0, animate: true });
|
||||||
const timeOut = setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
Spotlight.focus("product-detail-container-0");
|
if(hasVideo){
|
||||||
|
Spotlight.focus("product-video-player");
|
||||||
|
} else {
|
||||||
|
Spotlight.focus("product-detail-container-0");
|
||||||
|
}
|
||||||
},100);
|
},100);
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
scrollTop
|
scrollTop,
|
||||||
|
hasVideo
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user