diff options
author | Jon Reid | 2012-03-06 14:14:01 -0800 |
---|---|---|
committer | Jon Reid | 2012-03-06 14:14:01 -0800 |
commit | 60bba95eaffa8b5c741c6c85fb84b327cd75d6c3 (patch) | |
tree | 0087ad093418638ff1d0b4362715bd7b2d147eba /js/tools/TranslateObject3DTool.js | |
parent | d64f8c9fc1dd5fb15ad78ad61bed1ef3736321bb (diff) | |
parent | 342fb451bd251358068a0dcb10e9dc218b79a176 (diff) | |
download | ninja-60bba95eaffa8b5c741c6c85fb84b327cd75d6c3.tar.gz |
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into Timeline-uber
Diffstat (limited to 'js/tools/TranslateObject3DTool.js')
-rwxr-xr-x | js/tools/TranslateObject3DTool.js | 7 |
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++) |