This commit is contained in:
2025-11-14 02:35:17 +01:00
parent 6f4ff68062
commit a3c5494bf7
53 changed files with 269 additions and 340 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export const isPrimaryPointerEvent = (event?: PointerEventLike | null): boolean
if (!event) {
return true;
}
if (typeof event.button === 'number' && event.button !== 0) {
if (event.button !== 0) {
return false;
}
const type = event?.type?.toLowerCase?.() ?? '';