Skip to content

Commit

Permalink
Update zoom refresh (excalidraw#1180)
Browse files Browse the repository at this point in the history
One second feels way too long. Let's try 300ms
  • Loading branch information
vjeux authored Apr 3, 2020
1 parent 7955767 commit 27075b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 27075b0

Please sign in to comment.