From cc1ab7be90310df21d6cb0e6afbcecfc29c2e05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 17 Jan 2023 22:15:12 +0000 Subject: [PATCH] don't restart drawing after blurred pointerup --- 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 9236f70..666a1fa 100644 --- a/ui/src/components/rects/RectPad.vue +++ b/ui/src/components/rects/RectPad.vue @@ -53,6 +53,10 @@ export default class RectPad extends Vue { private rectangles: Rectangle[] = []; private on_pointerdown(event: MouseEvent) { + if (this.preview_state.visible) { + return; + } + this.preview_state.visible = true; this.preview_state.corner1 = get_event_thous(event); this.preview_state.corner2 = get_event_thous(event);