summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-09-30 10:45:21 +0200
committerjmoenig <jens@moenig.org>2014-09-30 10:45:21 +0200
commitebbd0be87ac9d8b2ac80857089350cfdd11f27b4 (patch)
tree9aef3d54af7b3ad61447f88b60f8782119b263f7
parent71c9103503691285191e024c8ae30200240d54cc (diff)
downloadsnap-ebbd0be87ac9d8b2ac80857089350cfdd11f27b4.tar.gz
snap-ebbd0be87ac9d8b2ac80857089350cfdd11f27b4.zip
fixed #584
-rw-r--r--blocks.js11
-rwxr-xr-xhistory.txt1
2 files changed, 10 insertions, 2 deletions
diff --git a/blocks.js b/blocks.js
index 58cab68..0c265fc 100644
--- a/blocks.js
+++ b/blocks.js
@@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
// Global stuff ////////////////////////////////////////////////////////
-modules.blocks = '2014-September-22';
+modules.blocks = '2014-September-30';
var SyntaxElementMorph;
@@ -2148,9 +2148,16 @@ BlockMorph.prototype.userMenu = function () {
this.thumbnail(0.5, 60, false),
function () {
var cpy = this.fullCopy(),
- nb = cpy.nextBlock();
+ nb = cpy.nextBlock(),
+ ide = myself.parentThatIsA(IDE_Morph);
if (nb) {nb.destroy(); }
cpy.pickUp(world);
+ if (ide) {
+ world.hand.grabOrigin = {
+ origin: ide.palette,
+ position: ide.palette.center()
+ };
+ }
},
'only duplicate this block'
);
diff --git a/history.txt b/history.txt
index 2b0f73f..a4ba13c 100755
--- a/history.txt
+++ b/history.txt
@@ -2289,4 +2289,5 @@ ______
* BYOB: allow percent symbols in custom block texts (fix #361), thanks, @Gubolin!!
* Morphic: allow negative min/max values for sliders (fix #285), thanks, @Gubolin!!
* Objects: fixed #378 (disable context menus for boolean representations)
+* Blocks: fixed #584