Skip to content

Commit

Permalink
wut was i thinking
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg authored Nov 11, 2023
1 parent f90358e commit b3cf95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const eventPosition = (e: cg.MouchEvent): cg.NumberPair | undefined => {
return; // touchend has no position!
};

export const isRightButton = (e: cg.MouchEvent): boolean => ((e.buttons ?? 0) & 2) === 2;
export const isRightButton = (e: cg.MouchEvent): boolean => e.button === 2;

export const createEl = (tagName: string, className?: string): HTMLElement => {
const el = document.createElement(tagName);
Expand Down

0 comments on commit b3cf95b

Please sign in to comment.