diff options
Diffstat (limited to 'html/js/git-deps-graph.coffee')
-rw-r--r-- | html/js/git-deps-graph.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee index 62a614b..d21370d 100644 --- a/html/js/git-deps-graph.coffee +++ b/html/js/git-deps-graph.coffee @@ -192,7 +192,6 @@ draw_graph = (commitish) -> .attr("class", "link") nodes = fg.selectAll(".node") .data(gdd.nodes, (d) -> d.sha1) - .call(d3cola.drag) global.nodes = nodes nodes.enter().append("g") @@ -204,6 +203,9 @@ draw_graph = (commitish) -> # d.x = n.x # d.y = n.y + # N.B. has to be done on the update selection, i.e. *after* the enter! + nodes.call(d3cola.drag) + init_tip() unless tip? draw_nodes fg, nodes |