()
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected