diff --git a/ec-canvas/ec-canvas.js b/ec-canvas/ec-canvas.js index a308340..dc091f9 100644 --- a/ec-canvas/ec-canvas.js +++ b/ec-canvas/ec-canvas.js @@ -261,5 +261,8 @@ function wrapTouch(event) { touch.offsetX = touch.x; touch.offsetY = touch.y; } + event.preventDefault ??= () => {}; + event.stopImmediatePropagation ??= () => {}; + event.stopPropagation ??= () => {}; return event; }