Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Commit

Permalink
Fixed comments being scaled incorrectly when picked up
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Jun 17, 2014
1 parent 5132c96 commit 15f262c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uiwidgets/ScriptsPane.as
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public class ScriptsPane extends ScrollFrameContents {
addFeedbackShape();
}

public function prepareToDragComment(c:ScratchComment):void {
c.scaleX = c.scaleY = scaleX;
}

public function draggingDone():void {
hideFeedbackShape();
possibleTargets = [];
Expand Down
4 changes: 4 additions & 0 deletions src/util/GestureHandler.as
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ public class GestureHandler {
if (b.parent is Block) Block(b.parent).removeBlock(b);
if (b.parent != null) b.parent.removeChild(b);
app.scriptsPane.prepareToDrag(b);
} else if (obj is ScratchComment) {
var c:ScratchComment = ScratchComment(obj);
if (c.parent != null) c.parent.removeChild(c);
app.scriptsPane.prepareToDragComment(c);
} else {
var inStage:Boolean = (obj.parent == app.stagePane);
if (obj.parent != null) {
Expand Down

0 comments on commit 15f262c

Please sign in to comment.