diff options
author | Eric Guzman | 2012-03-12 15:33:04 -0700 |
---|---|---|
committer | Eric Guzman | 2012-03-12 15:33:04 -0700 |
commit | 7e3161153b87b891875ac65368a19aed12909fa3 (patch) | |
tree | b80f48d711a9729fc39dbbdff28c4f0620e7302d /js/tools/modifier-tool-base.js | |
parent | 7a28932ba8a7517bbaaabe1f5edf678416aafc9c (diff) | |
parent | 69d90467865a1384725b2301901be2180c5a841f (diff) | |
download | ninja-7e3161153b87b891875ac65368a19aed12909fa3.tar.gz |
Merge branch 'refs/heads/master' into CSSPanelUpdates
Conflicts:
js/panels/PanelContainer/PanelContainer.reel/PanelContainer.js
Diffstat (limited to 'js/tools/modifier-tool-base.js')
-rwxr-xr-x | js/tools/modifier-tool-base.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js index 7d946cb0..7892d015 100755 --- a/js/tools/modifier-tool-base.js +++ b/js/tools/modifier-tool-base.js | |||
@@ -133,6 +133,13 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
133 | // a snap on the mouse down | 133 | // a snap on the mouse down |
134 | var hitRec = snapManager.snap(point.x, point.y, do3DSnap); | 134 | var hitRec = snapManager.snap(point.x, point.y, do3DSnap); |
135 | 135 | ||
136 | // TODO - Check that hitRec's element matches element that browser says we clicked on | ||
137 | var elt = this.application.ninja.stage.GetElement(event); | ||
138 | if(elt !== hitRec.getElement()) | ||
139 | { | ||
140 | hitRec = snapManager.findHitRecordForElement(elt); | ||
141 | } | ||
142 | |||
136 | // we don't want to snap to selected objects during the drag | 143 | // we don't want to snap to selected objects during the drag |
137 | var len = this._targets.length; | 144 | var len = this._targets.length; |
138 | for(var i=0; i<len; i++) | 145 | for(var i=0; i<len; i++) |