mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:18:29 +01:00
lemme see lol
This commit is contained in:
parent
ea3f3ee6f2
commit
2ab6bb1c89
1 changed files with 5 additions and 2 deletions
|
@ -1813,8 +1813,11 @@ const drawPause = () => {
|
|||
const init = () => {
|
||||
AMvideo.addEventListener("loadeddata", drawLoop, false)
|
||||
AMvideo.addEventListener("seeked", draw, false)
|
||||
AMvideo.addEventListener("play", drawLoop, false)
|
||||
AMvideo.addEventListener("pause", drawPause, false)
|
||||
AMvideo.addEventListener("play", () => {
|
||||
// Start the draw loop with a target frame rate of 250 frames per second (1 / 0.004)
|
||||
step = window.requestAnimationFrame(drawLoop);
|
||||
}, false);
|
||||
AMvideo.addEventListener("pause", drawPause, false)
|
||||
AMvideo.addEventListener("ended", drawPause, false)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue