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(); } },