Skip to content

Commit

Permalink
Merge pull request #4122 from IgorA100/patch-165
Browse files Browse the repository at this point in the history
Feat: Added support for full screen when double clicking on Stream on Watch page
  • Loading branch information
connortechnology authored Aug 27, 2024
2 parents 081d9d4 + 7956c38 commit e910259
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/skins/classic/views/js/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,14 @@ function initPage() {
applyMonitorControllable();
}
streamPrepareStart();

// Event listener for double click
//var elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"]');
var elStream = document.querySelectorAll('[id = "wrapperMonitor"]');
Array.prototype.forEach.call(elStream, (el) => {
el.addEventListener('touchstart', doubleTouch);
el.addEventListener('dblclick', doubleClickOnStream);
});
} // initPage

function watchFullscreen() {
Expand Down

0 comments on commit e910259

Please sign in to comment.