From c06988a202a821088443ad13aa1faa35dc287b59 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Thu, 6 Aug 2020 18:56:51 +0200 Subject: [PATCH] do not prevent UI scrolling on mobile (#2007) --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 071b309e..b30da18e 100644 --- a/src/index.tsx +++ b/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(); } },