summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-29 12:18:58 +0200
committerjmoenig <jens@moenig.org>2014-07-29 12:18:58 +0200
commit061852ee328199b30b3e82445de88c08b1cdd916 (patch)
tree53eb432825866630354b9518bafc58fda294446f
parentbef0e7a790119f3602683a144b9ddf894cb4d013 (diff)
downloadsnap-061852ee328199b30b3e82445de88c08b1cdd916.tar.gz
snap-061852ee328199b30b3e82445de88c08b1cdd916.zip
double clicking on a sprite in the stage selects it in the IDE
-rwxr-xr-xhistory.txt1
-rw-r--r--objects.js6
2 files changed, 6 insertions, 1 deletions
diff --git a/history.txt b/history.txt
index c64bba8..3d25768 100755
--- a/history.txt
+++ b/history.txt
@@ -2244,3 +2244,4 @@ ______
* fixed #526, thanks, Bernat, for reporting it!
* Objects, GUI: duplicate and clone nested sprites
* GUI, Store: export and import nested sprites
+* Objects: double clicking on a sprite in the stage selects it in the IDE
diff --git a/objects.js b/objects.js
index 35a0014..646d498 100644
--- a/objects.js
+++ b/objects.js
@@ -2642,7 +2642,7 @@ SpriteMorph.prototype.exportSprite = function () {
SpriteMorph.prototype.edit = function () {
var ide = this.parentThatIsA(IDE_Morph);
- if (ide) {
+ if (ide && !ide.isAppMode) {
ide.selectSprite(this);
}
};
@@ -3484,6 +3484,10 @@ SpriteMorph.prototype.mouseClickLeft = function () {
return procs;
};
+SpriteMorph.prototype.mouseDoubleClick = function () {
+ this.edit();
+};
+
// SpriteMorph timer
SpriteMorph.prototype.getTimer = function () {