Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix[mobile]: more robust touch check (#2396)

Peter Chinmancdad687ee139
diff --git a/js/app/packages/core/mobile/isTouchDevice.ts b/js/app/packages/core/mobile/isTouchDevice.ts
index f407ddcb93..78afb068c4 100644
--- a/js/app/packages/core/mobile/isTouchDevice.ts
+++ b/js/app/packages/core/mobile/isTouchDevice.ts
@@ -13,9 +13,6 @@ export function isTouchDevice(): boolean {
return false;
}
- const hasCoarsePointer = window.matchMedia('(pointer: coarse)').matches;
- const hasNoHover = window.matchMedia('(hover: none)').matches;
-
- cachedIsTouchDevice = hasCoarsePointer && hasNoHover;
+ cachedIsTouchDevice = window.matchMedia('(pointer: coarse)').matches;
return cachedIsTouchDevice;
}