aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-01 10:11:39 -0800
committerNivesh Rajbhandari2012-03-01 10:11:39 -0800
commit500426dea0ca95a6b45be8ea8d132cfdb4d2c940 (patch)
treedaa1750b465d1a747641d18f9803a03f66d41f5b
parent7980d9bde2b43aa5a494ddf6f1db5c4959a57b91 (diff)
downloadninja-500426dea0ca95a6b45be8ea8d132cfdb4d2c940.tar.gz
Fixed logic error when resizing with the top-left transform handles.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-xjs/tools/SelectionTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index e8035255..3df9a532 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -403,7 +403,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
403 case 0: 403 case 0:
404 // Resize North-West 404 // Resize North-West
405 delta = ~~(data.pt1[0] - data.pt0[0]); 405 delta = ~~(data.pt1[0] - data.pt0[0]);
406 deltaW = this._undoArray.map(function(item) { return item._w + delta + "px"}); 406 deltaW = this._undoArray.map(function(item) { return item._w - delta + "px"});
407 deltaL = this._undoArray.map(function(item) { return item._x + delta + "px"}); 407 deltaL = this._undoArray.map(function(item) { return item._x + delta + "px"});
408 delta = ~~(data.pt1[1] - data.pt0[1]); 408 delta = ~~(data.pt1[1] - data.pt0[1]);
409 deltaH = this._undoArray.map(function(item) { return item._h - delta + "px"}); 409 deltaH = this._undoArray.map(function(item) { return item._h - delta + "px"});