From f82e82f1bb34c989731737e22d60ab6b65c8564e Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 12 Nov 2022 23:57:53 +1100 Subject: [PATCH] Debounce > 300ms --- frontend/src/app/store.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/store.ts b/frontend/src/app/store.ts index 0057174d6b..39ee82e93e 100644 --- a/frontend/src/app/store.ts +++ b/frontend/src/app/store.ts @@ -28,14 +28,7 @@ import { socketioMiddleware } from './socketio/middleware'; * The necesssary nested persistors with blacklists are configured below. */ -const genericCanvasBlacklist = [ - // 'pastObjects', - // 'futureObjects', - // 'stageScale', - // 'stageDimensions', - // 'stageCoordinates', - 'cursorPosition', -]; +const genericCanvasBlacklist = ['cursorPosition']; const inpaintingCanvasBlacklist = genericCanvasBlacklist.map( (blacklistItem) => `canvas.inpainting.${blacklistItem}` @@ -86,7 +79,7 @@ const rootPersistConfig = getPersistConfig({ ...systemBlacklist, ...galleryBlacklist, ], - debounce: 500, + debounce: 300, }); // console.log(rootPersistConfig)