mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #275 from DrPandemic/double-click-to-fullscreen
Add double click to fullscreen
This commit is contained in:
commit
575cf4ff28
@ -368,7 +368,7 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
|||||||
if ("osd" === currentVisibleMenu) {
|
if ("osd" === currentVisibleMenu) {
|
||||||
hideOsd();
|
hideOsd();
|
||||||
} else if (!currentVisibleMenu) {
|
} else if (!currentVisibleMenu) {
|
||||||
showOsd();
|
showOsd();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1252,6 +1252,9 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
|||||||
|
|
||||||
if (browser.touch) {
|
if (browser.touch) {
|
||||||
dom.addEventListener(view, "dblclick", onDoubleClick, {});
|
dom.addEventListener(view, "dblclick", onDoubleClick, {});
|
||||||
|
} else {
|
||||||
|
var options = { passive: true };
|
||||||
|
dom.addEventListener(view, "dblclick", function () { playbackManager.toggleFullscreen(currentPlayer); }, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
view.querySelector(".buttonMute").addEventListener("click", function () {
|
view.querySelector(".buttonMute").addEventListener("click", function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user