From ed3b9d1959a2b0a98ae9ce0eaf04356871ecd1e7 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 30 Apr 2013 12:39:09 +0200 Subject: Fixed #83 --- gui.js | 3 ++- history.txt | 2 ++ morphic.js | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gui.js b/gui.js index 27a33d9..5e0571c 100644 --- a/gui.js +++ b/gui.js @@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-April-25'; +modules.gui = '2013-April-30'; // Declarations @@ -5053,6 +5053,7 @@ WardrobeMorph.prototype.reactToDropOf = function (icon) { }); this.sprite.costumes.add(costume, idx + 1); this.updateList(); + icon.mouseClickLeft(); // select }; // SoundIconMorph /////////////////////////////////////////////////////// diff --git a/history.txt b/history.txt index 6b5a3f5..0d4f780 100755 --- a/history.txt +++ b/history.txt @@ -1688,3 +1688,5 @@ ______ 130430 ------ * Objects: Costume shrink-wrapping +* Morphic: Allow triggers to be dragged if so specified (#83) +* GUI: select dragged costume diff --git a/morphic.js b/morphic.js index e2779e5..bd54d86 100644 --- a/morphic.js +++ b/morphic.js @@ -1035,7 +1035,7 @@ /*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio, FileList, getBlurredShadowSupport*/ -var morphicVersion = '2013-April-26'; +var morphicVersion = '2013-April-30'; var modules = {}; // keep track of additional loaded modules var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug @@ -8151,7 +8151,7 @@ TriggerMorph.prototype.mouseDoubleClick = function () { }; TriggerMorph.prototype.rootForGrab = function () { - return null; + return this.isDraggable ? TriggerMorph.uber.rootForGrab.call(this) : null; }; // TriggerMorph bubble help: -- cgit v1.3.1