forcegraph: fix dragging of nodes

This commit is contained in:
Nils Schneider 2015-07-07 11:27:19 +02:00
parent 160100e6df
commit 2d1916be02

View File

@ -494,11 +494,11 @@ define(["d3"], function (d3) {
.translate([sidebar.getWidth(), 0])
canvas = d3.select(el)
.append("canvas")
.attr("tabindex", 1)
.on("click", onClick)
.on("keypress", keyboardZoom(zoomBehavior))
.call(zoomBehavior)
.append("canvas")
.on("click", onClick)
.call(draggableNode)
.node()