diff options
Diffstat (limited to 'js/tools/SelectionTool.js')
-rwxr-xr-x | js/tools/SelectionTool.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index caa9e8d6..3df9a532 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -122,6 +122,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
122 | if(this._escape) { | 122 | if(this._escape) { |
123 | this._escape = false; | 123 | this._escape = false; |
124 | this._isSelecting = false; | 124 | this._isSelecting = false; |
125 | this._canSnap = true; | ||
125 | return; | 126 | return; |
126 | } | 127 | } |
127 | 128 | ||
@@ -153,6 +154,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
153 | } | 154 | } |
154 | 155 | ||
155 | this.endDraw(event); | 156 | this.endDraw(event); |
157 | this._canSnap = true; | ||
156 | return; | 158 | return; |
157 | } | 159 | } |
158 | 160 | ||
@@ -180,6 +182,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
180 | } | 182 | } |
181 | 183 | ||
182 | this.endDraw(event); | 184 | this.endDraw(event); |
185 | this._canSnap = true; | ||
183 | } | 186 | } |
184 | }, | 187 | }, |
185 | 188 | ||
@@ -400,7 +403,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
400 | case 0: | 403 | case 0: |
401 | // Resize North-West | 404 | // Resize North-West |
402 | delta = ~~(data.pt1[0] - data.pt0[0]); | 405 | delta = ~~(data.pt1[0] - data.pt0[0]); |
403 | deltaW = this._undoArray.map(function(item) { return item._w + delta + "px"}); | 406 | deltaW = this._undoArray.map(function(item) { return item._w - delta + "px"}); |
404 | deltaL = this._undoArray.map(function(item) { return item._x + delta + "px"}); | 407 | deltaL = this._undoArray.map(function(item) { return item._x + delta + "px"}); |
405 | delta = ~~(data.pt1[1] - data.pt0[1]); | 408 | delta = ~~(data.pt1[1] - data.pt0[1]); |
406 | deltaH = this._undoArray.map(function(item) { return item._h - delta + "px"}); | 409 | deltaH = this._undoArray.map(function(item) { return item._h - delta + "px"}); |