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:
committed by
psychedelicious
parent
4602efd598
commit
8c6b3efd39
@ -22,7 +22,6 @@ export const $isModifyingBoundingBox = computed(
|
|||||||
export const resetCanvasInteractionState = () => {
|
export const resetCanvasInteractionState = () => {
|
||||||
$cursorPosition.set(null);
|
$cursorPosition.set(null);
|
||||||
$isDrawing.set(false);
|
$isDrawing.set(false);
|
||||||
$isMouseOverBoundingBox.set(false);
|
|
||||||
$isMoveBoundingBoxKeyHeld.set(false);
|
$isMoveBoundingBoxKeyHeld.set(false);
|
||||||
$isMoveStageKeyHeld.set(false);
|
$isMoveStageKeyHeld.set(false);
|
||||||
$isMovingBoundingBox.set(false);
|
$isMovingBoundingBox.set(false);
|
||||||
@ -31,7 +30,6 @@ export const resetCanvasInteractionState = () => {
|
|||||||
|
|
||||||
export const resetToolInteractionState = () => {
|
export const resetToolInteractionState = () => {
|
||||||
$isTransformingBoundingBox.set(false);
|
$isTransformingBoundingBox.set(false);
|
||||||
$isMouseOverBoundingBox.set(false);
|
|
||||||
$isMovingBoundingBox.set(false);
|
$isMovingBoundingBox.set(false);
|
||||||
$isMovingStage.set(false);
|
$isMovingStage.set(false);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user