MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getTouchCapabilities

Function getTouchCapabilities

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

Source from the content-addressed store, hash-verified

70 * Get detailed touch capabilities
71 */
72export function getTouchCapabilities(): TouchCapabilities {
73 if (typeof window === 'undefined') {
74 return NO_TOUCH_CAPABILITIES;
75 }
76
77 return getTouchCapabilitiesFromEnvironment(getCurrentTouchEnvironment());
78}
79
80/**
81 * Hook to detect whether touch mode should be active.

Callers

nothing calls this directly

Tested by

no test coverage detected