From da539ea6cd0b0efb4692a7ae8c668f0dddbb80de Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 10 Apr 2018 14:31:49 -0400 Subject: [PATCH] Only select the original target after a drag. This allows you to still drag clones around, but when you stop dragging, the original sprite gets selected. --- src/virtual-machine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtual-machine.js b/src/virtual-machine.js index abe4b69ba..e9b0b91cc 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -900,7 +900,7 @@ class VirtualMachine extends EventEmitter { if (target) { this._dragTarget = null; target.stopDrag(); - this.setEditingTarget(target.id); + this.setEditingTarget(target.sprite.clones[0].id); } }