diff --git a/frontend/index.html b/frontend/index.html index 1e6b015..fe31fb9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - + 날씨각 diff --git a/frontend/src/index.css b/frontend/src/index.css index 8007ef7..81fe730 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -16,6 +16,7 @@ word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; + touch-action: manipulation; } body { @apply bg-page font-sans text-ink antialiased; diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 40001fe..2ccc94b 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -5,6 +5,9 @@ import './index.css' import './api/setup' import App from './App.tsx' +// iOS는 user-scalable=no를 무시해서 두 손가락 확대를 직접 막는다 +for (const type of ['gesturestart', 'gesturechange']) document.addEventListener(type, (e) => e.preventDefault(), { passive: false }) + // 칩·지역·검색어를 바꿔 다시 받는 동안 이전 결과를 그대로 두어 화면이 비거나 접히지 않게 한다 const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 5 * 60 * 1000, retry: 1, refetchOnWindowFocus: false, placeholderData: keepPreviousData } },