Skip to content

Commit 0c1d23d

Browse files
committed
Fix a bug in preserving fixed state.
1 parent dceb459 commit 0c1d23d

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

d3.v2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4177,16 +4177,16 @@
41774177
return d3.rebind(force, event, "on");
41784178
};
41794179
function d3_layout_forceDragstart(d) {
4180-
d.fixed |= 1;
4180+
d.fixed |= 2;
41814181
}
41824182
function d3_layout_forceDragend(d) {
4183-
d.fixed &= 2;
4183+
d.fixed &= 1;
41844184
}
41854185
function d3_layout_forceMouseover(d) {
4186-
d.fixed |= 2;
4186+
d.fixed |= 4;
41874187
}
41884188
function d3_layout_forceMouseout(d) {
4189-
d.fixed &= 1;
4189+
d.fixed &= 3;
41904190
}
41914191
function d3_layout_forceAccumulate(quad, alpha, charges) {
41924192
var cx = 0, cy = 0;

0 commit comments

Comments
 (0)