Don't stop audio playback when hiding a popup (#1995)

This commit is contained in:
toasted-nutbread 2021-10-21 19:56:43 -04:00 committed by GitHub
parent 9ae38bd8e9
commit f978819a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,8 +187,9 @@ class DisplayAudio {
_onFrameVisibilityChange({value}) { _onFrameVisibilityChange({value}) {
if (!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.clearAutoPlayTimer();
this.stopAudio();
} }
} }