From 08115ef3110be82b4dc423dc0ab5195a9a7472ab Mon Sep 17 00:00:00 2001 From: David Luzar Date: Sun, 6 Feb 2022 20:07:37 +0100 Subject: [PATCH] fix: Apple Pen missing strokes (#4705) --- src/components/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index d77876e9..2d482b85 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1273,6 +1273,9 @@ class App extends React.Component { } private onTapStart = (event: TouchEvent) => { + // fix for Apple Pencil Scribble + event.preventDefault(); + if (!didTapTwice) { didTapTwice = true; clearTimeout(tappedTwiceTimer); @@ -1294,7 +1297,7 @@ class App extends React.Component { didTapTwice = false; clearTimeout(tappedTwiceTimer); } - event.preventDefault(); + if (event.touches.length === 2) { this.setState({ selectedElementIds: {},