Skip to content

Commit

Permalink
Merge pull request #275 from DrPandemic/double-click-to-fullscreen
Browse files Browse the repository at this point in the history
Add double click to fullscreen
  • Loading branch information
anthonylavado committed Apr 30, 2019
2 parents d8bcd9c + bca2b35 commit 575cf4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controllers/videoosd.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
if ("osd" === currentVisibleMenu) {
hideOsd();
} else if (!currentVisibleMenu) {
showOsd();
showOsd();
}
}

Expand Down Expand Up @@ -1252,6 +1252,9 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med

if (browser.touch) {
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 () {
Expand Down

0 comments on commit 575cf4f

Please sign in to comment.