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

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