Explorar o código

do not prevent UI scrolling on mobile (#2007)

David Luzar %!s(int64=4) %!d(string=hai) anos
pai
achega
c06988a202
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/index.tsx

+ 1 - 1
src/index.tsx

@@ -68,7 +68,7 @@ document.addEventListener(
   "touchmove",
   (event) => {
     // @ts-ignore
-    if (event.scale !== 1) {
+    if (typeof event.scale === "number" && event.scale !== 1) {
       event.preventDefault();
     }
   },