diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index 217ab3c67..cc98cef59 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -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);