From c22608942c726f7b1c1c76281bdea35eeb37e262 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Fri, 6 Sep 2024 10:41:02 +0200 Subject: [PATCH 01/15] fix(draw): deactivate draw interactions when toolbar is closed --- src/components/footer/footer-bar.vue | 3 +++ src/components/footer/toolbar-draw.vue | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/footer/footer-bar.vue b/src/components/footer/footer-bar.vue index 1387cedd..72d8d1e1 100644 --- a/src/components/footer/footer-bar.vue +++ b/src/components/footer/footer-bar.vue @@ -6,6 +6,7 @@ import ButtonLink from './button-link.vue' import ToolbarDraw from './toolbar-draw.vue' import { useTranslation } from 'i18next-vue' import { useAppStore } from '@/stores/app.store' +import useDraw from '@/composables/draw/draw.composable' const { t, i18next } = useTranslation() const appStore = useAppStore() @@ -29,6 +30,8 @@ function onClickLayersIcon() { themeGridOpen.value = false } +//init draw interactions in parent of toolbar-draw to allow deactivation when toolbar is closed +useDraw()