浏览代码

Update zoom refresh (#1180)

One second feels way too long. Let's try 300ms
Christopher Chedeau 5 年之前
父节点
当前提交
27075b028c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);