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

This commit is contained in:
Roxana Chiorean 2020-04-11 15:26:27 -07:00 committed by GitHub
parent 2b9ae38946
commit d902bbd618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,