better zoom support

This commit is contained in:
Peter Cottle 2013-01-01 21:52:15 -08:00
parent 7750bae1b4
commit 423a353e28
14 changed files with 143 additions and 137 deletions

View file

@ -618,7 +618,7 @@ GitVisuals.prototype.calcDepthRecursive = function(commit, depth) {
GitVisuals.prototype.canvasResize = _.debounce(function(width, height) {
// refresh when we are ready
if (GLOBAL.isAnimating) {
this.events.trigger('processCommandFromEvent', 'refresh');
this.events.trigger('commandSubmitted', 'refresh');
} else {
this.refreshTree();
}

View file

@ -319,7 +319,7 @@ var VisBranch = VisBase.extend({
_.each(objs, function(rObj) {
rObj.click(function() {
Main.getEvents().trigger('processCommandFromEvent', commandStr);
Main.getEvents().trigger('commandSubmitted', commandStr);
});
$(rObj.node).css('cursor', 'pointer');
});

View file

@ -318,7 +318,7 @@ var VisNode = VisBase.extend({
var Main = require('../app');
_.each([this.get('circle'), this.get('text')], function(rObj) {
rObj.click(function() {
Main.getEvents().trigger('processCommandFromEvent', commandStr);
Main.getEvents().trigger('commandSubmitted', commandStr);
});
$(rObj.node).css('cursor', 'pointer');
});