From d0607411507d587a55d5ee7ec746328b505eae15 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Thu, 1 Nov 2018 09:55:03 -0400 Subject: [PATCH] Do not try to highlight the stage when selecting --- src/containers/target-pane.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/containers/target-pane.jsx b/src/containers/target-pane.jsx index c34d34133..a95c19809 100644 --- a/src/containers/target-pane.jsx +++ b/src/containers/target-pane.jsx @@ -110,7 +110,9 @@ class TargetPane extends React.Component { } handleSelectSprite (id) { this.props.vm.setEditingTarget(id); - this.props.onHighlightTarget(id, Date.now()); + if (this.props.stage && id !== this.props.stage.id) { + this.props.onHighlightTarget(id); + } } handleSurpriseSpriteClick () { const item = spriteLibraryContent[Math.floor(Math.random() * spriteLibraryContent.length)]; -- GitLab