Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

do not prevent UI scrolling on mobile (#2007)

David Luzarc06988a202a8
diff --git a/src/index.tsx b/src/index.tsx
index 071b309e0c..b30da18ef3 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();
}
},