mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 23:48:34 +02:00
debounce ownage
This commit is contained in:
parent
d2f3c05794
commit
834d410d30
2 changed files with 686 additions and 686 deletions
1368
build/bundle.js
1368
build/bundle.js
File diff suppressed because it is too large
Load diff
|
@ -531,14 +531,14 @@ GitVisuals.prototype.calcDepthRecursive = function(commit, depth) {
|
|||
return maxDepth;
|
||||
};
|
||||
|
||||
GitVisuals.prototype.canvasResize = function(width, height) {
|
||||
GitVisuals.prototype.canvasResize = _.debounce(function(width, height) {
|
||||
// refresh when we are ready
|
||||
if (GLOBAL.isAnimating) {
|
||||
Main.getEvents().trigger('processCommandFromEvent', 'refresh');
|
||||
} else {
|
||||
this.refreshTree();
|
||||
}
|
||||
};
|
||||
}, 200);
|
||||
|
||||
GitVisuals.prototype.addCommit = function(commit) {
|
||||
// TODO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue