Skip to content

Commit

Permalink
Fix a bug in preserving fixed state.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Sep 4, 2012
1 parent dceb459 commit 0c1d23d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 4 additions & 4 deletions d3.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -4177,16 +4177,16 @@
return d3.rebind(force, event, "on");
};
function d3_layout_forceDragstart(d) {
d.fixed |= 1;
d.fixed |= 2;
}
function d3_layout_forceDragend(d) {
d.fixed &= 2;
d.fixed &= 1;
}
function d3_layout_forceMouseover(d) {
d.fixed |= 2;
d.fixed |= 4;
}
function d3_layout_forceMouseout(d) {
d.fixed &= 1;
d.fixed &= 3;
}
function d3_layout_forceAccumulate(quad, alpha, charges) {
var cx = 0, cy = 0;
Expand Down
Loading

0 comments on commit 0c1d23d

Please sign in to comment.