Merge pull request #4159 from IgorA100/patch-655035

Fix: Always use only #wrapperEventVideo to enable fullscreen mode on Event page
pull/4140/head
Isaac Connor 2024-10-01 08:55:58 -04:00 committed by GitHub
commit a2278d9ead
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -1654,7 +1654,10 @@ function initPage() {
// Event listener for double click
//var elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"]');
var elStream = document.querySelectorAll("[id = 'wrapperEventVideo'], [id = 'videoobj']");
//// When using video.js, the document will have both #videoobj and #wrapperEventVideo, but we only need #videoobj
//const elStreamVideoJS = document.querySelectorAll("[id = 'videoobj']");
//const elStream = (elStreamVideoJS.length > 0) ? elStreamVideoJS : document.querySelectorAll("[id = 'wrapperEventVideo']");
const elStream = document.querySelectorAll("[id = 'wrapperEventVideo']");
Array.prototype.forEach.call(elStream, (el) => {
el.addEventListener('touchstart', doubleTouch);
el.addEventListener('dblclick', doubleClickOnStream);