Skip to content

Commit 772009d

Browse files
committed
Make sure drag behavior is instantiated.
1 parent 62b9153 commit 772009d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4269,8 +4269,8 @@
42694269
return force.alpha(0);
42704270
};
42714271
force.drag = function() {
4272-
if (!arguments.length) return drag;
42734272
if (!drag) drag = d3.behavior.drag().origin(d3_identity).on("dragstart.force", d3_layout_forceDragstart).on("drag.force", dragmove).on("dragend.force", d3_layout_forceDragend);
4273+
if (!arguments.length) return drag;
42744274
this.on("mouseover.force", d3_layout_forceMouseover).on("mouseout.force", d3_layout_forceMouseout).call(drag);
42754275
};
42764276
function dragmove(d) {

0 commit comments

Comments
 (0)