forcegraph: fix dragging of nodes
This commit is contained in:
parent
160100e6df
commit
2d1916be02
@ -494,11 +494,11 @@ define(["d3"], function (d3) {
|
|||||||
.translate([sidebar.getWidth(), 0])
|
.translate([sidebar.getWidth(), 0])
|
||||||
|
|
||||||
canvas = d3.select(el)
|
canvas = d3.select(el)
|
||||||
.append("canvas")
|
|
||||||
.attr("tabindex", 1)
|
.attr("tabindex", 1)
|
||||||
.on("click", onClick)
|
|
||||||
.on("keypress", keyboardZoom(zoomBehavior))
|
.on("keypress", keyboardZoom(zoomBehavior))
|
||||||
.call(zoomBehavior)
|
.call(zoomBehavior)
|
||||||
|
.append("canvas")
|
||||||
|
.on("click", onClick)
|
||||||
.call(draggableNode)
|
.call(draggableNode)
|
||||||
.node()
|
.node()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user