diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 3141b4c25b..4e255257cd 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -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() {