Add double click to fullscreen

This commit is contained in:
Jean-Samuel Aubry-Guzzi 2019-04-25 11:50:44 -04:00
parent df3d3bc7d3
commit 9c4517957a

View File

@ -1254,6 +1254,12 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
if (browser.touch) { if (browser.touch) {
dom.addEventListener(view, "dblclick", onDoubleClick, {}); dom.addEventListener(view, "dblclick", onDoubleClick, {});
} else {
dom.addEventListener(view, "dblclick", function () {
playbackManager.toggleFullscreen(currentPlayer);
}, {
passive: true
});
} }
view.querySelector(".buttonMute").addEventListener("click", function () { view.querySelector(".buttonMute").addEventListener("click", function () {