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 */ }