aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-10-21 19:56:43 -0400
committerGitHub <noreply@github.com>2021-10-21 19:56:43 -0400
commitf978819a3335cda7bc0e2414522cdf34f3dfa4e5 (patch)
tree45181b1c3d922f824ff51283b36bda40062edcd5 /ext/js/display
parent9ae38bd8e97b31feafb41fe3862cebdb5e082057 (diff)
Don't stop audio playback when hiding a popup (#1995)
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display-audio.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js
index 3beeca97..7b481034 100644
--- a/ext/js/display/display-audio.js
+++ b/ext/js/display/display-audio.js
@@ -187,8 +187,9 @@ class DisplayAudio {
_onFrameVisibilityChange({value}) {
if (!value) {
+ // The auto-play timer is stopped, but any audio that has already started playing
+ // is not stopped, as this is a valid use case for some users.
this.clearAutoPlayTimer();
- this.stopAudio();
}
}