MCPcopy Index your code
hub / github.com/plotly/plotly.js / _drag

Function _drag

test/jasmine/tests/map_test.js:1415–1430  ·  view source on GitHub ↗
(p0, p1, cb)

Source from the content-addressed store, hash-verified

1413 }
1414
1415 function _drag(p0, p1, cb) {
1416 var promise = _mouseEvent('mousemove', p0, noop).then(function() {
1417 return _mouseEvent('mousedown', p0, noop);
1418 }).then(function() {
1419 return _mouseEvent('mousemove', p1, noop);
1420 }).then(function() {
1421 // repeat mousemove to simulate long dragging motion
1422 return _mouseEvent('mousemove', p1, noop);
1423 }).then(function() {
1424 return _mouseEvent('mouseup', p1, noop);
1425 }).then(function() {
1426 return _mouseEvent('mouseup', p1, noop);
1427 }).then(cb);
1428
1429 return promise;
1430 }
1431});
1432
1433describe('map react', function() {

Callers 1

map_test.jsFile · 0.70

Calls 1

_mouseEventFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…