have somewhat ok global lock on animation down, better than nothing

This commit is contained in:
Peter Cottle 2012-10-13 13:48:15 -07:00
parent ef5ff59cca
commit a9e4d5a9a6
5 changed files with 18 additions and 103 deletions

View file

@ -392,8 +392,11 @@ GitVisuals.prototype.canvasResize = function(width, height) {
this.paperHeight = height;
// refresh when we are ready
this.refreshTree();
// TODO when animation is happening, do this: events.trigger('processCommandFromEvent', 'refresh');
if (GLOBAL.isAnimating) {
events.trigger('processCommandFromEvent', 'refresh');
} else {
this.refreshTree();
}
};
GitVisuals.prototype.addNode = function(id, commit) {