mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 16:37:52 +01:00
fix some autosync issue lol
This commit is contained in:
parent
5be52a9d7b
commit
70221f1f41
1 changed files with 1 additions and 10 deletions
|
@ -780,16 +780,7 @@ background-color: #0000;
|
|||
toggleVideo()
|
||||
});
|
||||
setInterval(() => {
|
||||
if(Math.round(video.currentTime) != Math.round(aud.currentTime)) {
|
||||
video.pause(); aud.pause(); playPauseButton.innerHTML = playSVG;
|
||||
video.currentTime > aud.currentTime ? aud.currentTime = video.currentTime : video.currentTime = aud.currentTime;
|
||||
setTimeout(() => {
|
||||
video.play(); aud.play(); playPauseButton.innerHTML = pauseSVG;
|
||||
}, 800)
|
||||
}
|
||||
}, 1000)
|
||||
setInterval(() => {
|
||||
if(Math.round(video.currentTime) != Math.round(aud.currentTime)) {
|
||||
if(Math.round(video.currentTime) - Math.round(aud.currentTime) > 1 || Math.round(video.currentTime) - Math.round(aud.currentTime) < -1 || Math.round(aud.currentTime) - Math.round(video.currentTime) > 1 || Math.round(aud.currentTime) - Math.round(video.currentTime) < -1) {
|
||||
video.pause(); aud.pause(); playPauseButton.innerHTML = playSVG;
|
||||
video.currentTime > aud.currentTime ? aud.currentTime = video.currentTime : video.currentTime = aud.currentTime;
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in a new issue