From 0c8bea99c9c7db1c8dfe36a317893f25ac3a966e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 12 Nov 2022 03:30:37 -0800 Subject: [PATCH] video: no pause on touch --- src/components/PsVideo.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/PsVideo.ts b/src/components/PsVideo.ts index 973704ee..05e1aec8 100644 --- a/src/components/PsVideo.ts +++ b/src/components/PsVideo.ts @@ -141,22 +141,6 @@ class VideoContentSetup { } content.element.appendChild(content.videoElement); - // Pause / play on click on mobile - let touchAt = 0; - content.videoElement.addEventListener("touchstart", (e) => { - touchAt = e.timeStamp; - }); - content.videoElement.addEventListener("touchend", (e) => { - if (touchAt && e.timeStamp - touchAt < 200) { - if (content.videojs.paused()) { - content.videojs.play(); - } else { - content.videojs.pause(); - } - } - touchAt = 0; - }); - const fileid = content.data.photo.fileid; // Create hls sources if enabled