From 08616aa1fa06347e0d78748053bdff815d524d96 Mon Sep 17 00:00:00 2001 From: "Adriano (daitarn)" Date: Sun, 25 Oct 2026 16:46:57 +0100 Subject: [PATCH] maker: pan dell'immagine di prova non si interrompe col mouse (Refs #104) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Jbf7qKuxsnAVjxthRy7dnB --- src/frontend/flask_app/static/js/dxf_recipe_wizard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/flask_app/static/js/dxf_recipe_wizard.js b/src/frontend/flask_app/static/js/dxf_recipe_wizard.js index 00e2c38..a2519fc 100644 --- a/src/frontend/flask_app/static/js/dxf_recipe_wizard.js +++ b/src/frontend/flask_app/static/js/dxf_recipe_wizard.js @@ -430,6 +430,8 @@ function dxfRecipeWizard(taskId, csrf, msgs) { onPanDown(ev) { const vp = this.$refs.viewport; if (!vp || (ev.pointerType === 'mouse' && ev.button)) return; + // #104: senza preventDefault Chromium manda pointercancel al primo movimento del mouse e il pan si ferma + if (ev.preventDefault) ev.preventDefault(); this._pan = { x: ev.clientX, y: ev.clientY, left: vp.scrollLeft, top: vp.scrollTop }; this.panning = true; try { vp.setPointerCapture(ev.pointerId); } catch (e) { /* puntatore gia' rilasciato */ }