fix: 두 번 탭·두 손가락 확대 막기
This commit is contained in:
1 parent
e9cb07be60
commit
2ce1fa2aed
3 files changed
+5
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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 } },
|
||||
|
||||
Reference in new issue
Block a user