Skip to content

Commit

Permalink
Added event listener for double click (event.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorA100 authored Aug 22, 2024
1 parent ff0367d commit 79c8042
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/skins/classic/views/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,14 @@ function initPage() {
removeTag(tag);
});

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

streamPlay();

if ( parseInt(ZM_OPT_USE_GEOLOCATION) && parseFloat(eventData.Latitude) && parseFloat(eventData.Longitude)) {
Expand Down

0 comments on commit 79c8042

Please sign in to comment.