From 2d1916be02aab1fa82d5d3ee0128a1ec9f8c4755 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 7 Jul 2015 11:27:19 +0200 Subject: [PATCH] forcegraph: fix dragging of nodes --- lib/forcegraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 1c3b9da..3ac948d 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -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()