mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Merge pull request #284 from nathan/zoomed-comment-dragging
Fixed comments being scaled incorrectly when picked up
This commit is contained in:
commit
06cbd80a8c
2 changed files with 8 additions and 0 deletions
|
@ -128,6 +128,10 @@ public class ScriptsPane extends ScrollFrameContents {
|
||||||
addFeedbackShape();
|
addFeedbackShape();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function prepareToDragComment(c:ScratchComment):void {
|
||||||
|
c.scaleX = c.scaleY = scaleX;
|
||||||
|
}
|
||||||
|
|
||||||
public function draggingDone():void {
|
public function draggingDone():void {
|
||||||
hideFeedbackShape();
|
hideFeedbackShape();
|
||||||
possibleTargets = [];
|
possibleTargets = [];
|
||||||
|
|
|
@ -416,6 +416,10 @@ public class GestureHandler {
|
||||||
if (b.parent is Block) Block(b.parent).removeBlock(b);
|
if (b.parent is Block) Block(b.parent).removeBlock(b);
|
||||||
if (b.parent != null) b.parent.removeChild(b);
|
if (b.parent != null) b.parent.removeChild(b);
|
||||||
app.scriptsPane.prepareToDrag(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 {
|
} else {
|
||||||
var inStage:Boolean = (obj.parent == app.stagePane);
|
var inStage:Boolean = (obj.parent == app.stagePane);
|
||||||
if (obj.parent != null) {
|
if (obj.parent != null) {
|
||||||
|
|
Loading…
Reference in a new issue