From e572da6f654f076b91dd7cd3ca55b5326a33939e Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 29 Jul 2014 08:21:25 +0200 Subject: fixed #526 thanks, @bromagosa, for reporting it! --- blocks.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 279acb7..6ab6781 100644 --- a/blocks.js +++ b/blocks.js @@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2014-July-18'; +modules.blocks = '2014-July-29'; var SyntaxElementMorph; @@ -2093,7 +2093,15 @@ BlockMorph.prototype.userMenu = function () { menu.addItem( "duplicate", function () { - this.fullCopy().pickUp(world); + var dup = myself.fullCopy(), + ide = myself.parentThatIsA(IDE_Morph); + dup.pickUp(world); + if (ide) { + world.hand.grabOrigin = { + origin: ide.palette, + position: ide.palette.center() + }; + } }, 'make a copy\nand pick it up' ); -- cgit v1.3.1