mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
have somewhat ok global lock on animation down, better than nothing
This commit is contained in:
parent
ef5ff59cca
commit
a9e4d5a9a6
5 changed files with 18 additions and 103 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue