aboutsummaryrefslogtreecommitdiff
path: root/js/panels/resize-composer.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/resize-composer.js')
-rw-r--r--js/panels/resize-composer.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/js/panels/resize-composer.js b/js/panels/resize-composer.js
index 450dc7b6..0d1774cd 100644
--- a/js/panels/resize-composer.js
+++ b/js/panels/resize-composer.js
@@ -77,6 +77,7 @@ exports.ResizeComposer = Montage.create(Composer, {
77 load: { 77 load: {
78 value: function() { 78 value: function() {
79 this.element.addEventListener("mousedown", this, true); 79 this.element.addEventListener("mousedown", this, true);
80 this.element.addEventListener("dblclick", this, true);
80 } 81 }
81 }, 82 },
82 83
@@ -112,7 +113,6 @@ exports.ResizeComposer = Montage.create(Composer, {
112 113
113 captureMousemove: { 114 captureMousemove: {
114 value: function(e) { 115 value: function(e) {
115
116 if (this.xAxis) { 116 if (this.xAxis) {
117 this._deltaX = e.clientX - this._startX; 117 this._deltaX = e.clientX - this._startX;
118 } 118 }
@@ -129,12 +129,13 @@ exports.ResizeComposer = Montage.create(Composer, {
129 } 129 }
130 }, 130 },
131 131
132 deserializedFromTemplate: { 132 captureDblclick: {
133 value: function() { 133 value:function(e) {
134 if (this.component) { 134 this._reset();
135 this.component.addComposer(this); 135 this._executeEvent("resizeReset");
136 }
137 } 136 }
138 } 137 }
139 138
139
140
140}); \ No newline at end of file 141}); \ No newline at end of file