()
| 130 | } |
| 131 | |
| 132 | function isCoarsePointerDevice() { |
| 133 | if (typeof window !== "undefined") { |
| 134 | try { |
| 135 | if (window.matchMedia?.("(pointer: coarse)").matches) { |
| 136 | return true; |
| 137 | } |
| 138 | } catch (_) { |
| 139 | // Ignore matchMedia capability errors and fall through. |
| 140 | } |
| 141 | } |
| 142 | return ( |
| 143 | typeof navigator !== "undefined" && |
| 144 | Number(navigator.maxTouchPoints || 0) > 0 |
| 145 | ); |
| 146 | } |
| 147 | |
| 148 | const setNativeContextMenuDisabled = (disabled) => { |
| 149 | const value = !!disabled; |
no outgoing calls
no test coverage detected