diff --git a/src/jcanvas.ts b/src/jcanvas.ts index 7db5754..9e643e9 100644 --- a/src/jcanvas.ts +++ b/src/jcanvas.ts @@ -81,7 +81,11 @@ const extendObject = Object.assign, cursors: ["grab", "grabbing", "zoom-in", "zoom-out"], propsObj: {} as Record, }, - tangibleEvents: (JCanvasMouseEventName | JCanvasTouchEventName)[] = [ + tangibleEvents: ( + | JCanvasMouseEventName + | JCanvasTouchEventName + | JCanvasPointerEventName + )[] = [ "mousedown", "mousemove", "mouseup", @@ -90,6 +94,9 @@ const extendObject = Object.assign, "touchstart", "touchmove", "touchend", + "pointerdown", + "pointermove", + "pointerup", ]; // jCanvas object in which global settings are other data are stored