mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
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
This commit is contained in:
parent
4602efd598
commit
8c6b3efd39
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user