diff --git a/core/frontend/src/cards/js/video.js b/core/frontend/src/cards/js/video.js index 627e5e5d47..b9b85dac5e 100644 --- a/core/frontend/src/cards/js/video.js +++ b/core/frontend/src/cards/js/video.js @@ -115,7 +115,7 @@ } } - videoEl.addEventListener('click', () => { + videoElementContainer.addEventListener('click', () => { if (!videoEl.loop) { const isPlaying = !!(videoEl.currentTime > 0 && !videoEl.paused && !videoEl.ended && videoEl.readyState > 2); if (isPlaying) { @@ -149,7 +149,8 @@ cancelAnimationFrame(raf); } - largePlayIcon.addEventListener('click', () => { + largePlayIcon.addEventListener('click', (event) => { + event.stopPropagation(); handleOnPlay(); });