mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
Add double click to fullscreen
This commit is contained in:
parent
df3d3bc7d3
commit
9c4517957a
@ -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