Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Fix flickering mouse tracking when using two touches on mobile (#1390)

Roxana Chioreand902bbd6184e
diff --git a/src/components/App.tsx b/src/components/App.tsx
index 956e2695bd..75ccbb8b9d 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -2574,6 +2574,8 @@ export class App extends React.Component<any, AppState> {
return;
}
this.portal.socket &&
+ // do not broadcast when more than 1 pointer since that shows flickering on the other side
+ gesture.pointers.size < 2 &&
this.broadcastMouseLocation({
pointerCoords,
button,