From b3cf95b538eafb992fc432547775d9c9bfb68032 Mon Sep 17 00:00:00 2001 From: Jonathan Gamble <101470903+schlawg@users.noreply.github.com> Date: Sat, 11 Nov 2023 17:18:05 -0600 Subject: [PATCH] wut was i thinking --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 7f7c558c..4bc0391a 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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);