aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/fullscreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/fullscreen.js')
-rw-r--r--src/js/fullscreen.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/js/fullscreen.js b/src/js/fullscreen.js
index cd31f60b..55b5c804 100644
--- a/src/js/fullscreen.js
+++ b/src/js/fullscreen.js
@@ -68,13 +68,15 @@ class Fullscreen {
});
// Fullscreen toggle on double click
- utils.on(this.player.elements.container, 'dblclick', () => {
+ utils.on(this.player.elements.container, 'dblclick', event => {
+ // Ignore double click in controls
+ if (this.player.elements.controls.contains(event.target)) {
+ return;
+ }
+
this.toggle();
});
- // Prevent double click on controls bubbling up
- utils.on(this.player.elements.controls, 'dblclick', event => event.stopPropagation());
-
// Update the UI
this.update();
}