aboutsummaryrefslogtreecommitdiff
path: root/js/tools/TranslateObject3DTool.js
diff options
context:
space:
mode:
authorEric Guzman2012-03-12 15:33:04 -0700
committerEric Guzman2012-03-12 15:33:04 -0700
commit7e3161153b87b891875ac65368a19aed12909fa3 (patch)
treeb80f48d711a9729fc39dbbdff28c4f0620e7302d /js/tools/TranslateObject3DTool.js
parent7a28932ba8a7517bbaaabe1f5edf678416aafc9c (diff)
parent69d90467865a1384725b2301901be2180c5a841f (diff)
downloadninja-7e3161153b87b891875ac65368a19aed12909fa3.tar.gz
Merge branch 'refs/heads/master' into CSSPanelUpdates
Conflicts: js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
Diffstat (limited to 'js/tools/TranslateObject3DTool.js')
-rwxr-xr-xjs/tools/TranslateObject3DTool.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/tools/TranslateObject3DTool.js b/js/tools/TranslateObject3DTool.js
index bbbbc871..5157e39c 100755
--- a/js/tools/TranslateObject3DTool.js
+++ b/js/tools/TranslateObject3DTool.js
@@ -65,6 +65,13 @@ exports.TranslateObject3DTool = Object.create(Translate3DToolBase, {
65 // a snap on the mouse down 65 // a snap on the mouse down
66 var hitRec = snapManager.snap(point.x, point.y, do3DSnap); 66 var hitRec = snapManager.snap(point.x, point.y, do3DSnap);
67 67
68 // TODO - Check that hitRec's element matches element that browser says we clicked on
69 var elt = this.application.ninja.stage.GetElement(event);
70 if(elt !== hitRec.getElement())
71 {
72 hitRec = snapManager.findHitRecordForElement(elt);
73 }
74
68 // we don't want to snap to selected objects during the drag 75 // we don't want to snap to selected objects during the drag
69 var len = this._targets.length; 76 var len = this._targets.length;
70 for(var i=0; i<len; i++) 77 for(var i=0; i<len; i++)