Update zoom refresh (#1180)

One second feels way too long. Let's try 300ms
This commit is contained in:
Christopher Chedeau 2020-04-02 23:56:14 -07:00 committed by GitHub
parent 79557676c2
commit 27075b028c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);