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

Function createMatcher

src/hooks/touchDevicePolicy.test.ts:12–14  ·  view source on GitHub ↗
(matchesByQuery: Record<string, boolean>)

Source from the content-addressed store, hash-verified

10import type { TouchMediaMatcher } from './touchDevicePolicy';
11
12function createMatcher(matchesByQuery: Record<string, boolean>): TouchMediaMatcher {
13 return (query) => ({ matches: matchesByQuery[query] ?? false });
14}
15
16describe('touch device policy', () => {
17 it('uses touch mode only when the primary pointer is coarse and cannot hover', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected