diff options
Diffstat (limited to 'src/js/listeners.js')
-rw-r--r-- | src/js/listeners.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/listeners.js b/src/js/listeners.js index ff4b31d5..69b32814 100644 --- a/src/js/listeners.js +++ b/src/js/listeners.js @@ -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 { |