Explorar o código

Update zoom refresh (#1180)

One second feels way too long. Let's try 300ms
Christopher Chedeau %!s(int64=5) %!d(string=hai) anos
pai
achega
27075b028c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);