summaryrefslogtreecommitdiff
path: root/scripts/rhizicore.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rhizicore.js')
-rw-r--r--scripts/rhizicore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 481a8ed7..6937201c 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -347,13 +347,15 @@ function myGraph(el) {
}
function dragged(d) {
+
+ d3.select(this).classed("fixed", true);
d3.select(this).attr("cx", d.x = d3.event.x).attr("cy", d.y = d3.event.y);
}
function dragended(d) {
d3.select(this).classed("dragging", false);
d3.select(this).classed("fixed", true);
- d3.select(this).attr("dx", d3.event.x).attr("dy", d3.event.y);
+ //d3.select(this).attr("cx", d.x = d3.event.x).attr("cy", d.y = d3.event.y);
}
var force = d3.layout.force()