aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index bc7443b5..6246a71f 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -139,10 +139,14 @@ const ui = {
// Check playing state
checkPlaying() {
window.setTimeout(() => {
+ // Class hooks
utils.toggleClass(this.elements.container, this.config.classNames.playing, this.playing);
-
utils.toggleClass(this.elements.container, this.config.classNames.stopped, this.paused);
+ // Set aria state
+ Array.from(this.elements.buttons.play).forEach(button => utils.toggleState(button, this.playing));
+
+ // Toggle controls
this.toggleControls(!this.playing);
}, 100);
},