From 185b6183897c51082ad295a9155d2eebf4bcb800 Mon Sep 17 00:00:00 2001 From: andrewwallacespeckle Date: Fri, 8 Aug 2025 13:12:33 +0100 Subject: [PATCH] Revert "Section box reset fix" This reverts commit 8b870fb6ce6dcf6faa17feeff6686026564de34b. --- packages/frontend-2/components/viewer/controls/Bottom.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/frontend-2/components/viewer/controls/Bottom.vue b/packages/frontend-2/components/viewer/controls/Bottom.vue index b6b6bdd6a..b871dbe99 100644 --- a/packages/frontend-2/components/viewer/controls/Bottom.vue +++ b/packages/frontend-2/components/viewer/controls/Bottom.vue @@ -177,9 +177,7 @@ const toggleActivePanel = (panel: ActivePanel) => { } if (panel === ActivePanel.sectionBox) { - if (!isSectionBoxVisible.value) { - toggleSectionBox() - } + toggleSectionBox() } if (panel === ActivePanel.measurements) { @@ -206,9 +204,13 @@ const toggleSectionBoxPanel = () => { activePanel.value === ActivePanel.sectionBox ? ActivePanel.none : ActivePanel.sectionBox + toggleSectionBox() } const onActivePanelClose = () => { + if (activePanel.value === ActivePanel.sectionBox) { + closeSectionBox() + } if (activePanel.value === ActivePanel.measurements) { enableMeasurements(false) }