fix: drawing tools use pointer events for mouse+touch support

- InteractionEngine: pointerdown on canvas, pointermove/pointerup on document

- Pointer capture for smooth dragging outside canvas

- CSS: touch-action: none on canvas to prevent browser touch interception

- Fixes: tools not working on desktop (mouseup lost outside canvas) and mobile (no touch support)
This commit is contained in:
2026-06-28 23:15:48 +02:00
parent 3f93a236e1
commit 88ddebcd86
2 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -1458,7 +1458,7 @@ a:hover { text-decoration: underline; }
.status-item.hide-mobile { display: none; }
/* SVG canvas: ensure it's scrollable/zoomable on touch */
.canvas-svg { touch-action: pinch-zoom pan-x pan-y; }
.canvas-svg { touch-action: none; }
}
/* Very small screens (<480px) */