From 8c6b3efd39edf51e8e07b3e48e5d310e4abbf847 Mon Sep 17 00:00:00 2001 From: Thomas Mello Date: Wed, 31 Jan 2024 04:16:15 +0300 Subject: [PATCH] fix(ui): remove hard reset of cursor on canvas during state reset Remove resetting cursor when resetting state letting event handlers to take care of presentation --- .../frontend/web/src/features/canvas/store/canvasNanostore.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/canvas/store/canvasNanostore.ts b/invokeai/frontend/web/src/features/canvas/store/canvasNanostore.ts index 81ed62addf..f971886d5e 100644 --- a/invokeai/frontend/web/src/features/canvas/store/canvasNanostore.ts +++ b/invokeai/frontend/web/src/features/canvas/store/canvasNanostore.ts @@ -22,7 +22,6 @@ export const $isModifyingBoundingBox = computed( export const resetCanvasInteractionState = () => { $cursorPosition.set(null); $isDrawing.set(false); - $isMouseOverBoundingBox.set(false); $isMoveBoundingBoxKeyHeld.set(false); $isMoveStageKeyHeld.set(false); $isMovingBoundingBox.set(false); @@ -31,7 +30,6 @@ export const resetCanvasInteractionState = () => { export const resetToolInteractionState = () => { $isTransformingBoundingBox.set(false); - $isMouseOverBoundingBox.set(false); $isMovingBoundingBox.set(false); $isMovingStage.set(false); };