From 9bc91fed6176c7423d2a69ccccf37458afaa72f2 Mon Sep 17 00:00:00 2001 From: Luna Godier Date: Fri, 16 Dec 2022 14:00:21 +0100 Subject: [PATCH] fix: debounce value decreased --- src/components/Excalidraw.tsx | 4 ++-- src/config/settings.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Excalidraw.tsx b/src/components/Excalidraw.tsx index 2c04a6c4..ab03e82a 100644 --- a/src/components/Excalidraw.tsx +++ b/src/components/Excalidraw.tsx @@ -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'; @@ -43,7 +43,7 @@ const GetView = (prop: { appData: AppData }): ReactElement => { id, }); } - }, DEBOUNCE_VALE), + }, DEBOUNCE_VALUE), ).current; function handleChange( diff --git a/src/config/settings.ts b/src/config/settings.ts index 04189796..bccb0f07 100644 --- a/src/config/settings.ts +++ b/src/config/settings.ts @@ -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;