MCPcopy
hub / github.com/plotly/plotly.js / touchDrag

Function touchDrag

test/jasmine/tests/gl2d_plot_interact_test.js:688–695  ·  view source on GitHub ↗
(target, start, end)

Source from the content-addressed store, hash-verified

686 }
687
688 function touchDrag(target, start, end) {
689 return new Promise(function(resolve) {
690 touchEvent('touchstart', start[0], start[1], {element: target});
691 touchEvent('touchmove', end[0], end[1], {element: target});
692 touchEvent('touchend', end[0], end[1], {element: target});
693 setTimeout(resolve, 0);
694 });
695 }
696
697 function assertEvent(e) {
698 expect(e.defaultPrevented).toEqual(true);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…