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

Function dragElementViaTouch

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

Source from the content-addressed store, hash-verified

98 * @param y Position along the y axis to which to drag the element.
99 */
100export function dragElementViaTouch(
101 fixture: ComponentFixture<any>,
102 element: Element,
103 x: number,
104 y: number,
105) {
106 startDraggingViaTouch(fixture, element);
107 continueDraggingViaTouch(fixture, x, y);
108 stopDraggingViaTouch(fixture, x, y);
109}
110
111/**
112 * @param fixture Fixture on which to run change detection.

Callers 1

Calls 3

startDraggingViaTouchFunction · 0.85
continueDraggingViaTouchFunction · 0.85
stopDraggingViaTouchFunction · 0.85

Tested by

no test coverage detected