From c215104522f3540d6c0250020d9787765b442b9b Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum <eric.rosenbaum@gmail.com> Date: Thu, 25 Jul 2019 14:33:49 -0400 Subject: [PATCH] =?UTF-8?q?Only=20deselect-outside=20if=20there=E2=80=99s?= =?UTF-8?q?=20a=20selection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/containers/sound-editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/sound-editor.jsx b/src/containers/sound-editor.jsx index bb0bfae59..a2b19719f 100644 --- a/src/containers/sound-editor.jsx +++ b/src/containers/sound-editor.jsx @@ -384,7 +384,7 @@ class SoundEditor extends React.Component { } handleContainerClick (e) { // If the click is on the sound editor's div (and not any other element), delesect - if (e.target === this.ref) { + if (e.target === this.ref && this.state.trimStart !== null) { this.handleUpdateTrim(null, null); } } -- GitLab