Play button as toggle button, tooltip changes, docs updated, fullscreen fix
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
Reference in New Issue
Block a user