mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Add double click to fullscreen
This commit is contained in:
parent
df3d3bc7d3
commit
9c4517957a
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user