MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / detectTouchDevice

Function detectTouchDevice

src/hooks/useIsTouchDevice.ts:63–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 * so they get desktop mode with full gallery.
62 */
63export function detectTouchDevice(): boolean {
64 return shouldUseTouchMode(
65 getTouchMediaState(getCurrentTouchEnvironment().matchMedia)
66 );
67}
68
69/**
70 * Get detailed touch capabilities

Callers 1

AppFunction · 0.90

Calls 3

shouldUseTouchModeFunction · 0.90
getTouchMediaStateFunction · 0.90

Tested by

no test coverage detected