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

Function shouldUseTouchMode

src/hooks/touchDevicePolicy.ts:48–53  ·  view source on GitHub ↗
({
  isCoarsePointer,
  cannotHover,
}: TouchMediaState)

Source from the content-addressed store, hash-verified

46}
47
48export function shouldUseTouchMode({
49 isCoarsePointer,
50 cannotHover,
51}: TouchMediaState): boolean {
52 return isCoarsePointer && cannotHover;
53}
54
55export function getTouchCapabilitiesFromEnvironment({
56 matchMedia,

Callers 2

detectTouchDeviceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected