New networkmaps in progress... (Fixed weird movement when drag nodes)

This commit is contained in:
Arturo Gonzalez 2016-09-22 09:08:29 +02:00
parent b441f1a2d4
commit c576134821
1 changed files with 2 additions and 0 deletions

View File

@ -1755,6 +1755,8 @@ function init_drag_and_drop() {
.each(function(d) {
graph.nodes[d.id].x = d.x + delta[0];
graph.nodes[d.id].y = d.y + delta[1];
graph.nodes[d.id].px = d.px + delta[0];
graph.nodes[d.id].py = d.py + delta[1];
});
set_positions_graph();