From 2c639df21b563392f659944d325d6c6ea3f73b8e Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 14 Apr 2020 18:27:30 +0200 Subject: [PATCH] Can switch to full screen by double clicking on videos --- assets/js/components/calls/window.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 5af7d1d3..56d9b7bb 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -719,6 +719,11 @@ class CallWindow extends CustomEvents { once: true }) } + + // Request fullscreen on double click + videoEl.addEventListener("dblclick", () => { + RequestFullScreen(this.rootEl); + }) this.videoEls.set(peerID, videoEl)