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

Function drag

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

Source from the content-addressed store, hash-verified

483 d3.behavior.drag = function() {
484 var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null;
485 function drag() {
486 this.on("mousedown.drag", mousedown).on("touchstart.drag", mousedown);
487 }
488 function mousedown() {
489 var target = this, event_ = event.of(target, arguments), eventTarget = d3.event.target, touchId = d3.event.touches ? d3.event.changedTouches[0].identifier : null, offset, origin_ = point(), moved = 0;
490 var w = d3.select(d3_window).on(touchId != null ? "touchmove.drag-" + touchId : "mousemove.drag", dragmove).on(touchId != null ? "touchend.drag-" + touchId : "mouseup.drag", dragend, true);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected