This commit is contained in:
Flummi
2025-03-24 11:13:27 +01:00
parent 30ac7ef6be
commit 728f044066
5 changed files with 220 additions and 21 deletions

View File

@ -149,8 +149,16 @@ class v0ck {
player.addEventListener('click', e => {
const path = e.path || (e.composedPath && e.composedPath());
if(!path.filter(f => f.classList?.contains('v0ck_player_controls')).length)
togglePlay(e);
if(path.filter(f => f.classList?.contains('v0ck_player_controls')).length)
return;
//navigator.userAgentData = { mobile: true };
if(navigator.userAgentData?.mobile) { // mobile
return;
}
togglePlay(e);
});
toggle.addEventListener('click', togglePlay);
video.addEventListener('play', updatePlayIcon);