From 9d50997839ffe75b698e532ea658397ee211cd47 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Thu, 30 May 2024 13:33:01 -0700 Subject: [PATCH] Add pointer events to internal list of tangible events --- src/jcanvas.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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