Sfoglia il codice sorgente

Fix pinch-to-zoom performance (#2171)

Pete Hunt 4 anni fa
parent
commit
68bdfaefbe
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/components/App.tsx

+ 2 - 0
src/components/App.tsx

@@ -3813,7 +3813,9 @@ class App extends React.Component<ExcalidrawProps, AppState> {
           Object.keys(selectedElementIds).length !== 0
             ? selectedElementIds
             : previousSelectedElementIds,
+        shouldCacheIgnoreZoom: true,
       }));
+      this.resetShouldCacheIgnoreZoomDebounced();
       return;
     }