tracking.js
tracking.js copied to clipboard
Fixed the bug when emit('stop') the requestAnimationFrame callback still run
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.
Thank you!