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

pull/1392/head
Roxana Chiorean 5 years ago committed by GitHub
parent 2b9ae38946
commit d902bbd618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2574,6 +2574,8 @@ export class App extends React.Component<any, AppState> {
return; return;
} }
this.portal.socket && 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({ this.broadcastMouseLocation({
pointerCoords, pointerCoords,
button, button,

Loading…
Cancel
Save