diff --git a/src/main/resources/templates/rework.html b/src/main/resources/templates/rework.html index 2a50042..92044b4 100644 --- a/src/main/resources/templates/rework.html +++ b/src/main/resources/templates/rework.html @@ -420,7 +420,15 @@ rows.forEach(r=>{ const on = Number(r.dataset.i)===activeIdx; r.classList.toggle('active', on); - if(on) r.scrollIntoView({block:'nearest'}); + if(on){ + // 페이지 전체가 아니라 세그먼트 박스 안에서만 스크롤(영상 sticky 흔들림 방지) + const box = document.getElementById('segmentList'); + if(box){ + const br = box.getBoundingClientRect(), rr = r.getBoundingClientRect(); + if(rr.top < br.top) box.scrollTop -= (br.top - rr.top); + else if(rr.bottom > br.bottom) box.scrollTop += (rr.bottom - br.bottom); + } + } }); }