Selaa lähdekoodia

Update zoom refresh (#1180)

One second feels way too long. Let's try 300ms
Christopher Chedeau 5 vuotta sitten
vanhempi
commit
27075b028c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/components/App.tsx

+ 1 - 1
src/components/App.tsx

@@ -2628,7 +2628,7 @@ export class App extends React.Component<any, AppState> {
 
   private resetShouldCacheIgnoreZoomDebounced = debounce(() => {
     this.setState({ shouldCacheIgnoreZoom: false });
-  }, 1000);
+  }, 300);
 
   private saveDebounced = debounce(() => {
     saveToLocalStorage(globalSceneState.getAllElements(), this.state);