Skip to content

Commit

Permalink
fix: 아이폰에서 위로 스크롤 시 새로고침이 되던 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
solo5star committed Oct 12, 2023
1 parent 4726732 commit 5756b71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/styles/GlobalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ const GlobalStyle = createGlobalStyle`
body {
position: fixed;
overflow-y: hidden;
overflow: hidden;
display: flex;
justify-content: center;
width: 100vw;
height: 100svh;
}
button {
Expand All @@ -34,13 +35,17 @@ const GlobalStyle = createGlobalStyle`
#root {
position: relative;
overflow-y: auto;
overscroll-behavior-y: contain;
display: flex;
flex-direction: column;
width: 100%;
max-width: 495px;
box-shadow: ${({ theme }) => theme.shadow['2']};
-webkit-overflow-scrolling: touch;
}
`;

Expand Down

0 comments on commit 5756b71

Please sign in to comment.