Skip to content

Commit

Permalink
Add pointer events to internal list of tangible events
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed May 30, 2024
1 parent 6d923c7 commit 9d50997
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/jcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ const extendObject = Object.assign,
cursors: ["grab", "grabbing", "zoom-in", "zoom-out"],
propsObj: {} as Record<string, boolean>,
},
tangibleEvents: (JCanvasMouseEventName | JCanvasTouchEventName)[] = [
tangibleEvents: (
| JCanvasMouseEventName
| JCanvasTouchEventName
| JCanvasPointerEventName
)[] = [
"mousedown",
"mousemove",
"mouseup",
Expand All @@ -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
Expand Down

0 comments on commit 9d50997

Please sign in to comment.