Fixed measurements

This commit is contained in:
Mike Tasset
2025-07-31 16:12:02 +02:00
parent 6b8dd89a1d
commit ab0d91f355
@@ -120,6 +120,10 @@ const toggleActivePanel = (panel: ActivePanel) => {
if (panel === ActivePanel.sectionBox) {
toggleSectionBox()
}
if (panel === ActivePanel.measurements) {
enableMeasurements(true)
}
}
const toggleMeasurements = () => {
@@ -132,6 +136,9 @@ const onActivePanelClose = () => {
if (activePanel.value === ActivePanel.sectionBox) {
toggleSectionBox()
}
if (activePanel.value === ActivePanel.measurements) {
enableMeasurements(false)
}
activePanel.value = ActivePanel.none
}