graph: fix dragging with d3 v3.4.1