Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: Apple Pen missing strokes (#4705)

David Luzar08115ef3110b
diff --git a/src/components/App.tsx b/src/components/App.tsx
index d77876e9b7..2d482b854c 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -1273,6 +1273,9 @@ class App extends React.Component<AppProps, AppState> {
}
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<AppProps, AppState> {
didTapTwice = false;
clearTimeout(tappedTwiceTimer);
}
- event.preventDefault();
+
if (event.touches.length === 2) {
this.setState({
selectedElementIds: {},