Minor tweaks

This commit is contained in:
Sam Potts
2017-11-21 14:05:55 +11:00
parent f518ec108b
commit f33bc5a5c6
9 changed files with 10 additions and 11 deletions

View File

@ -272,13 +272,13 @@ const listeners = {
// On click play, pause ore restart
utils.on(wrapper, 'click', () => {
// Touch devices will just show controls (if we're hiding controls)
if (this.config.hideControls && support.touch && !this.media.paused) {
if (this.config.hideControls && support.touch && !this.paused) {
return;
}
if (this.media.paused) {
if (this.paused) {
this.play();
} else if (this.media.ended) {
} else if (this.ended) {
this.restart();
this.play();
} else {

View File

@ -25,7 +25,7 @@
}
&:focus {
.plyr-tab-focus();
outline: 0;
}
}