fix(editor): keep the drawing still when the selection changes

The « Sélection : … » tag above the drawing mounted on select and
unmounted on deselect, moving the canvas. It is now sr-only text,
not live, in both twins; board 04 deviation recorded (owner 2026-11-12).
This commit is contained in:
bchanot committed 2026-11-12 15:16:34 +01:00
1 parent 9f092ec1e2
commit 927537b343
6 files changed
+91 -8

No files matched your search

+1 -1
View File
@@ -320,7 +320,7 @@ test.describe('equine working copy and commit latency', () => {
await expect(toolButton(page, dict, 'point')).toBeEnabled()
await showDrawing(page, dict)
await annotationList(page, dict).getByRole('button').first().click()
await expect(selectionTag(page)).toBeVisible()
await expect(selectionTag(page)).toHaveCount(1)
// A horse path no annotation covers: its box centre hits the path itself.
const at = await page
.getByTestId('annotation-canvas')