From 0f47aa462897ff5f71ce5e985f4d8077b2bc735c Mon Sep 17 00:00:00 2001 From: Kai Niebes Date: Thu, 11 Jun 2026 21:12:03 +0200 Subject: [PATCH] Guard annotation dblclick handler on isAnnotationMode$ Prevents annotation creation while menu is closed. --- src/app/services/annotation/annotation.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/services/annotation/annotation.service.ts b/src/app/services/annotation/annotation.service.ts index 82b3a5a5..c0a99846 100644 --- a/src/app/services/annotation/annotation.service.ts +++ b/src/app/services/annotation/annotation.service.ts @@ -357,6 +357,7 @@ export class AnnotationService { const canvas = this.babylon.getCanvas(); fromEvent(canvas, 'dblclick').subscribe(() => { + if (!this.isAnnotationMode$.getValue()) return; const pickResult = (() => { switch (mediaType) { case 'splat': {