Skip to content

Commit

Permalink
Add an offset translation to maintain offset even if we don't want the
Browse files Browse the repository at this point in the history
tree to move when focusing a node.
  • Loading branch information
philogb authored and clementdenis committed May 5, 2011
1 parent f0caf4a commit 27010aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Visualizations/Spacetree.js
Expand Up @@ -341,6 +341,8 @@ $jit.ST= (function() {
};
if(move.enable) {
this.geom.translate(node.endPos.add(offset).$scale(-1), "end");
} else {
this.geom.translate($C(offset.x, offset.y).$scale(-1), "end");
}
this.fx.animate($.merge(this.controller, { modes: ['linear'] }, onComplete));
},
Expand Down

0 comments on commit 27010aa

Please sign in to comment.