video: no pause on touch

pull/221/head
Varun Patil 2022-11-12 03:30:37 -08:00
parent cfe06ff8cd
commit 0c8bea99c9
1 changed files with 0 additions and 16 deletions

View File

@ -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