Merge pull request #4159 from IgorA100/patch-655035
Fix: Always use only #wrapperEventVideo to enable fullscreen mode on Event pagepull/4140/head
commit
a2278d9ead
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue