diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx index 9650a92..03b181a 100644 --- a/frontend/src/b/Sheets.tsx +++ b/frontend/src/b/Sheets.tsx @@ -156,11 +156,14 @@ function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void const root = document.documentElement const before = root.style.overflow root.style.overflow = 'hidden' + // 창 안에서 끝까지 밀어도 뒤 페이지로 넘어가지 않게 + root.style.overscrollBehavior = 'none' // 뒤 화면 움직임 멈추기는 페이지 전체 스타일을 다시 계산하게 해서, 창이 다 올라온 뒤에 한다 const pause = setTimeout(() => root.classList.add('b-sheet-open'), SHEET_OPEN_MS) return () => { clearTimeout(pause) root.style.overflow = before + root.style.overscrollBehavior = '' root.classList.remove('b-sheet-open') } }, [isOpen]) diff --git a/frontend/src/b/fortune.tsx b/frontend/src/b/fortune.tsx index 26c0da4..ad46b7f 100644 --- a/frontend/src/b/fortune.tsx +++ b/frontend/src/b/fortune.tsx @@ -174,7 +174,7 @@ export function TarotSheet() { } return ( -