aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage.reel/stage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 515165bf..2e49fc04 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -264,7 +264,7 @@ exports.Stage = Montage.create(Component, {
264 this._userContentLeft = 0; 264 this._userContentLeft = 0;
265 this._userContentTop = 0; 265 this._userContentTop = 0;
266 266
267 this.application.ninja.currentDocument._window.addEventListener("scroll", this, false); 267 //this.application.ninja.currentDocument._window.addEventListener("scroll", this, false);
268 } 268 }
269 269
270 270
@@ -543,7 +543,7 @@ exports.Stage = Montage.create(Component, {
543 var point, element; 543 var point, element;
544 544
545 point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX, position.pageY)); 545 point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX, position.pageY));
546 element = this.application.ninja.currentDocument.GetElementFromPoint(point.x + this.scrollLeft,point.y + this.scrollTop); 546 element = this.application.ninja.currentDocument.model.views.design.getElementFromPoint(point.x + this.scrollLeft,point.y + this.scrollTop);
547 547
548 // workaround Chrome 3d bug 548 // workaround Chrome 3d bug
549 if(this.application.ninja.toolsData.selectedToolInstance._canSnap && this.application.ninja.currentDocument.inExclusion(element) !== -1) { 549 if(this.application.ninja.toolsData.selectedToolInstance._canSnap && this.application.ninja.currentDocument.inExclusion(element) !== -1) {