From 7125a0a8eb6d6f027b05a99ca12c0f888e715d15 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 14 Apr 2026 14:40:55 +0200 Subject: [PATCH] fix(annotations): reset liveWidth/liveHeight in handleKeyDown error rollback [M1, M6] Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/AnnotationEditOverlay.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/AnnotationEditOverlay.svelte b/frontend/src/lib/components/AnnotationEditOverlay.svelte index bf920f2f..baf9afaa 100644 --- a/frontend/src/lib/components/AnnotationEditOverlay.svelte +++ b/frontend/src/lib/components/AnnotationEditOverlay.svelte @@ -219,9 +219,12 @@ function handleKeyDown(event: KeyboardEvent): void { width: liveWidth, height: liveHeight }); - } catch { + } catch (err) { + console.error('annotation keyboard update failed', err); liveX = annotation.x; liveY = annotation.y; + liveWidth = annotation.width; + liveHeight = annotation.height; } }, 300); }