diff options
author | Ananya Sen | 2012-06-11 17:13:31 -0700 |
---|---|---|
committer | Ananya Sen | 2012-06-11 17:13:31 -0700 |
commit | 609ad21e56623827c5ca203cf6062f70d3067764 (patch) | |
tree | 9b7a00dd4219ef5250c5a297df5e47a538fa14a0 /js/stage | |
parent | 19d9da2ae655f0b531aa0e348a15bcf9d673a776 (diff) | |
download | ninja-609ad21e56623827c5ca203cf6062f70d3067764.tar.gz |
- removed extra selection change event,
- displace element after adding it to the document
Signed-off-by: Ananya Sen <Ananya.Sen@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 30ee1e40..2177616d 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -634,7 +634,7 @@ exports.Stage = Montage.create(Component, { | |||
634 | point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX - docView.iframe.contentWindow.pageXOffset + this.documentOffsetLeft, position.pageY - docView.iframe.contentWindow.pageYOffset + this.documentOffsetTop)); | 634 | point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX - docView.iframe.contentWindow.pageXOffset + this.documentOffsetLeft, position.pageY - docView.iframe.contentWindow.pageYOffset + this.documentOffsetTop)); |
635 | element = this.currentDocument.model.views.design.getElementFromPoint(point.x - this.userContentLeft,point.y - this.userContentTop); | 635 | element = this.currentDocument.model.views.design.getElementFromPoint(point.x - this.userContentLeft,point.y - this.userContentTop); |
636 | 636 | ||
637 | if(!element) debugger; | 637 | // if(!element) debugger; |
638 | // workaround Chrome 3d bug | 638 | // workaround Chrome 3d bug |
639 | if(this.application.ninja.toolsData.selectedToolInstance._canSnap && this.currentDocument.inExclusion(element) !== -1) { | 639 | if(this.application.ninja.toolsData.selectedToolInstance._canSnap && this.currentDocument.inExclusion(element) !== -1) { |
640 | point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX, position.pageY)); | 640 | point = webkitConvertPointFromPageToNode(this.canvas, new WebKitPoint(position.pageX, position.pageY)); |