Ver código fonte

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

Roxana Chiorean 5 anos atrás
pai
commit
d902bbd618
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/components/App.tsx

+ 2 - 0
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,