diff options
author | Nivesh Rajbhandari | 2012-05-16 14:36:47 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-16 14:36:47 -0700 |
commit | 96c92ab93bdb6eb2dd42ef275b84d83aef8254bf (patch) | |
tree | cb9dcb27bc3d4dcdf47a93f292d0f05185624324 /js/stage | |
parent | 4f46850b376b2d428a3d9415b1dc69b36b875a2c (diff) | |
download | ninja-96c92ab93bdb6eb2dd42ef275b84d83aef8254bf.tar.gz |
Fixing selection bugs in new templates.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index 05376527..854b5a2d 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -609,7 +609,7 @@ exports.Stage = Montage.create(Component, { | |||
609 | var point, element, | 609 | var point, element, |
610 | docView = this.application.ninja.currentDocument.model.views.design; | 610 | docView = this.application.ninja.currentDocument.model.views.design; |
611 | 611 | ||
612 | point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX - docView.iframe.contentWindow.pageXOffset, position.pageY - docView.iframe.contentWindow.pageYOffset)); | 612 | point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX - docView.iframe.contentWindow.pageXOffset + this.documentOffsetLeft, position.pageY - docView.iframe.contentWindow.pageYOffset + this.documentOffsetTop)); |
613 | element = this.application.ninja.currentDocument.model.views.design.getElementFromPoint(point.x - this.userContentLeft,point.y - this.userContentTop); | 613 | element = this.application.ninja.currentDocument.model.views.design.getElementFromPoint(point.x - this.userContentLeft,point.y - this.userContentTop); |
614 | 614 | ||
615 | if(!element) debugger; | 615 | if(!element) debugger; |