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

Function drag

test/jasmine/tests/updatemenus_test.js:1345–1356  ·  view source on GitHub ↗
(node, x, y, deltaX, deltaY)

Source from the content-addressed store, hash-verified

1343 }
1344
1345 function drag(node, x, y, deltaX, deltaY) {
1346 node.dispatchEvent(new MouseEvent('mousedown', {
1347 bubbles: true,
1348 clientX: x,
1349 clientY: y
1350 }));
1351 node.dispatchEvent(new MouseEvent('mousemove', {
1352 bubbles: true,
1353 clientX: x + deltaX,
1354 clientY: y + deltaY
1355 }));
1356 }
1357
1358 function dragScrollBox(node, deltaX, deltaY) {
1359 var position = getCenter(node);

Callers 2

dragScrollBoxFunction · 0.70
dragScrollBarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…