From 93f31cd2b8d8f978be7202b1460bcb83bc36d661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 19 Jan 2023 00:27:21 +0000 Subject: [PATCH] only remove rect while not editing --- ui/src/components/rects/RectPad.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/components/rects/RectPad.vue b/ui/src/components/rects/RectPad.vue index 8a836ef..5856515 100644 --- a/ui/src/components/rects/RectPad.vue +++ b/ui/src/components/rects/RectPad.vue @@ -143,6 +143,10 @@ export default class RectPad extends Vue { } private remove_rect(event: MouseEvent) { + if (this.preview_visible) { + return; + } + this.pop_rectangle(get_event_thous(event)); } }