MCPcopy Create free account
hub / github.com/idank/explainshell / dragmove

Function dragmove

explainshell/web/static/js/d3.v3.js:507–520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

505 })[0] : d3.mouse(p);
506 }
507 function dragmove() {
508 if (!target.parentNode) return dragend();
509 var p = point(), dx = p[0] - origin_[0], dy = p[1] - origin_[1];
510 moved |= dx | dy;
511 origin_ = p;
512 d3_eventCancel();
513 event_({
514 type: "drag",
515 x: p[0] + offset[0],
516 y: p[1] + offset[1],
517 dx: dx,
518 dy: dy
519 });
520 }
521 function dragend() {
522 event_({
523 type: "dragend"

Callers

nothing calls this directly

Calls 3

dragendFunction · 0.85
pointFunction · 0.85
d3_eventCancelFunction · 0.85

Tested by

no test coverage detected