We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9953b5 commit 01fa842Copy full SHA for 01fa842
1 file changed
packages/utils/src/platform.ts
@@ -58,10 +58,12 @@ const coarsePointer = matchMedia('(pointer: coarse)');
58
// Capability check: does the runtime expose the `Touch` / `TouchEvent`
59
// constructors? True on any device able to dispatch touch events, including
60
// hybrid laptops with both a mouse and a touchscreen. Independent of `noHover`.
61
+/* eslint-disable compat/compat */
62
const touchCapable =
63
typeof window !== 'undefined' &&
64
typeof window.Touch !== 'undefined' &&
65
typeof window.TouchEvent !== 'undefined';
66
+/* eslint-enable compat/compat */
67
68
// --- Screen reader -----------------------------------------------------------
69
0 commit comments