mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 16:58:14 +01:00
lemme see lol
This commit is contained in:
parent
ea3f3ee6f2
commit
2ab6bb1c89
1 changed files with 5 additions and 2 deletions
|
@ -1813,7 +1813,10 @@ const drawPause = () => {
|
||||||
const init = () => {
|
const init = () => {
|
||||||
AMvideo.addEventListener("loadeddata", drawLoop, false)
|
AMvideo.addEventListener("loadeddata", drawLoop, false)
|
||||||
AMvideo.addEventListener("seeked", draw, false)
|
AMvideo.addEventListener("seeked", draw, false)
|
||||||
AMvideo.addEventListener("play", drawLoop, 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("pause", drawPause, false)
|
||||||
AMvideo.addEventListener("ended", drawPause, false)
|
AMvideo.addEventListener("ended", drawPause, false)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue