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:
Thomas Mello 2024-01-31 04:16:15 +03:00 committed by psychedelicious
parent 4602efd598
commit 8c6b3efd39

View File

@ -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);
};