fix(annotations): reset liveWidth/liveHeight in handleKeyDown error rollback [M1, M6]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-14 14:40:55 +02:00
parent 7097f991fe
commit 7125a0a8eb

View File

@@ -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);
}