aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/listeners.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2018-01-05 10:37:38 +1100
committerSam Potts <me@sampotts.me>2018-01-05 10:37:38 +1100
commite14e2cfaff8acb9a11719d8f5e5684ca7ff48a02 (patch)
tree71eba78d319de41582cd3ebbdb9c7acd88c09667 /src/js/listeners.js
parent04119b27e69472cce70c7f5b5359c6b45ad718f9 (diff)
parent92cb9e22e24d52e1843a5865651f7b2c5a00d47a (diff)
downloadplyr-e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02.tar.lz
plyr-e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02.tar.xz
plyr-e14e2cfaff8acb9a11719d8f5e5684ca7ff48a02.zip
Merge branch 'develop' of https://github.com/Selz/plyr into develop
Diffstat (limited to 'src/js/listeners.js')
-rw-r--r--src/js/listeners.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/js/listeners.js b/src/js/listeners.js
index 0d57f5e1..b3ccc1c6 100644
--- a/src/js/listeners.js
+++ b/src/js/listeners.js
@@ -221,6 +221,11 @@ const listeners = {
utils.on(document, fullscreen.eventType, event => {
this.toggleFullscreen(event);
});
+
+ // Fullscreen toggle on double click
+ utils.on(this.elements.container, 'dblclick', event => {
+ this.toggleFullscreen(event);
+ });
}
},
@@ -263,6 +268,9 @@ const listeners = {
// Loading
utils.on(this.media, 'stalled waiting canplay seeked playing', event => ui.checkLoading.call(this, event));
+ // Check if media failed to load
+ // utils.on(this.media, 'play', event => ui.checkFailed.call(this, event));
+
// Click video
if (this.supported.ui && this.config.clickToPlay && !this.isAudio) {
// Re-fetch the wrapper