summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-29 08:21:25 +0200
committerjmoenig <jens@moenig.org>2014-07-29 08:21:25 +0200
commite572da6f654f076b91dd7cd3ca55b5326a33939e (patch)
tree67a6e6fb49ee5466ea661bc5c7b4cd9244766cfa
parentc0b91b5fa2f785d186f4c4b356e43ceb2048d6ca (diff)
downloadsnap-yow-e572da6f654f076b91dd7cd3ca55b5326a33939e.tar.gz
snap-yow-e572da6f654f076b91dd7cd3ca55b5326a33939e.zip
fixed #526
thanks, @bromagosa, for reporting it!
-rw-r--r--blocks.js12
-rwxr-xr-xhistory.txt4
2 files changed, 14 insertions, 2 deletions
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'
);
diff --git a/history.txt b/history.txt
index 0caf24b..ea6616b 100755
--- a/history.txt
+++ b/history.txt
@@ -2238,3 +2238,7 @@ ______
------
* Lists: fixed "Load Failed Type Error Cannot read property 'isLinked' of null"
* Threads: enable “JS function” block to create custom control structures and HOFs
+
+140729
+------
+* fixed #526, thanks, Bernat, for reporting it!