MCPcopy Create free account
hub / github.com/angular/components / startDraggingViaTouch

Function startDraggingViaTouch

src/cdk/drag-drop/directives/test-utils.spec.ts:115–121  ·  view source on GitHub ↗
(fixture: ComponentFixture<any>, element: Element)

Source from the content-addressed store, hash-verified

113 * @param element Element which is being dragged.
114 */
115export function startDraggingViaTouch(fixture: ComponentFixture<any>, element: Element) {
116 dispatchTouchEvent(element, 'touchstart');
117 fixture.detectChanges();
118
119 dispatchTouchEvent(document, 'touchmove');
120 fixture.detectChanges();
121}
122
123/**
124 * @param fixture Fixture on which to run change detection.

Callers 3

dragElementViaTouchFunction · 0.85

Calls 1

dispatchTouchEventFunction · 0.85

Tested by

no test coverage detected