Skip to content

Commit

Permalink
fix: debounce value decreased
Browse files Browse the repository at this point in the history
  • Loading branch information
lgodier committed Dec 16, 2022
1 parent 9c20bd2 commit 9bc91fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Excalidraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { APP_DATA_TYPES, APP_DATA_VISIBILITY } from '../config/appDataTypes';
import {
CURRENT_ITEM_FONT_FAMILY,
DEBOUNCE_VALE,
DEBOUNCE_VALUE,
VIEW_BACKGROUND_COLOR,
} from '../config/settings';
import getInitialData from './InitialData';
Expand Down Expand Up @@ -43,7 +43,7 @@ const GetView = (prop: { appData: AppData }): ReactElement => {
id,
});
}
}, DEBOUNCE_VALE),
}, DEBOUNCE_VALUE),
).current;

function handleChange(
Expand Down
2 changes: 1 addition & 1 deletion src/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export const VIEW_MODE_ENABLE = false;
export const ZEN_MODE_ENABLE = false;
export const GRID_MODE_ENABLE = false;
export const THEME = 'light';
export const DEBOUNCE_VALE = 5000;
export const DEBOUNCE_VALUE = 1000;
export const VIEW_BACKGROUND_COLOR = '#AFEEEE';
export const CURRENT_ITEM_FONT_FAMILY = 1;

0 comments on commit 9bc91fe

Please sign in to comment.