aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-20 17:06:40 -0700
committerJose Antonio Marquez2012-07-20 17:06:40 -0700
commit5a4100de56bac351d7ee677bc85257ded5f5aee1 (patch)
treeb791db1b53f1f04555d1ea247f4e16db1c546eec /js/stage
parentf0e931e9a917d89e02e946bd6b2f2eae04510439 (diff)
parenta9b17cef34d3c4f222b6f4d0949fa3c2bbfe867b (diff)
downloadninja-5a4100de56bac351d7ee677bc85257ded5f5aee1.tar.gz
Merge branch 'refs/heads/Ninja-Master' into Document
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js2
-rwxr-xr-xjs/stage/stage.reel/stage.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js
index 3e83281e..b207cc3d 100755
--- a/js/stage/binding-view.reel/binding-view.js
+++ b/js/stage/binding-view.reel/binding-view.js
@@ -365,7 +365,7 @@ exports.BindingView = Montage.create(Component, {
365 this.mouseOverHud = overHud; 365 this.mouseOverHud = overHud;
366 if(this._isDrawingConnection && !overHud) { 366 if(this._isDrawingConnection && !overHud) {
367 //NOTE : Continue This content. mouse over select 367 //NOTE : Continue This content. mouse over select
368 var obj = this.application.ninja.stage.getElement(event, true); 368 var obj = this.application.ninja.stage.getElement(e, true);
369 if (obj && obj !== this.selectedElement) 369 if (obj && obj !== this.selectedElement)
370 { 370 {
371 if (!obj.controller || obj === null) 371 if (!obj.controller || obj === null)
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index b7235d19..817220d4 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -894,7 +894,9 @@ exports.Stage = Montage.create(Component, {
894 point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX - docView.iframe.contentWindow.pageXOffset + this.documentOffsetLeft, position.pageY - docView.iframe.contentWindow.pageYOffset + this.documentOffsetTop)); 894 point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX - docView.iframe.contentWindow.pageXOffset + this.documentOffsetLeft, position.pageY - docView.iframe.contentWindow.pageYOffset + this.documentOffsetTop));
895 element = this.currentDocument.model.views.design.getElementFromPoint(point.x - this.userContentLeft,point.y - this.userContentTop); 895 element = this.currentDocument.model.views.design.getElementFromPoint(point.x - this.userContentLeft,point.y - this.userContentTop);
896 896
897// if(!element) debugger; 897 if(!element) {
898 return this.currentDocument.model.domContainer;
899 }
898 // workaround Chrome 3d bug 900 // workaround Chrome 3d bug
899 if(this.application.ninja.toolsData.selectedToolInstance._canSnap && this.currentDocument.inExclusion(element) !== -1) { 901 if(this.application.ninja.toolsData.selectedToolInstance._canSnap && this.currentDocument.inExclusion(element) !== -1) {
900 point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX, position.pageY)); 902 point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX, position.pageY));