MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isCoarsePointerDevice

Function isCoarsePointerDevice

src/lib/editorManager.js:132–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

getAutocompleteConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected