Open fyue opened 6 years ago
it seems that window.cancelAnimationFrame(requestId) can not work to stop the requestAnimationFrame callback run.
that one worked like charm !
You forgot to add stopRequestAnimationFrame = false to 'run' event handler.
stopRequestAnimationFrame = false
Thank you!
it seems that window.cancelAnimationFrame(requestId) can not work to stop the requestAnimationFrame callback run.