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

Function buildReactTouchEvent

src/test/builders/eventFakes.ts:333–345  ·  view source on GitHub ↗
({
  touches = [],
  preventDefault = () => undefined,
  stopPropagation = () => undefined,
}: ReactTouchEventBuilderOptions = {})

Source from the content-addressed store, hash-verified

331}
332
333export function buildReactTouchEvent({
334 touches = [],
335 preventDefault = () => undefined,
336 stopPropagation = () => undefined,
337}: ReactTouchEventBuilderOptions = {}): TestReactTouchEvent<HTMLDivElement> {
338 const reactTouches = buildTouchList(touches);
339
340 return {
341 preventDefault,
342 stopPropagation,
343 touches: reactTouches,
344 };
345}
346
347export function buildThreePointerEvent({
348 instanceId,

Calls 1

buildTouchListFunction · 0.85

Tested by

no test coverage detected