eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.43k stars 1.44k forks source link

Fixed the bug when emit('stop') the requestAnimationFrame callback still run #320

Open fyue opened 6 years ago

fyue commented 6 years ago

it seems that window.cancelAnimationFrame(requestId) can not work to stop the requestAnimationFrame callback run.

shershen08 commented 5 years ago

that one worked like charm !

aliosv commented 5 years ago

You forgot to add stopRequestAnimationFrame = false to 'run' event handler.

BhavitChhatralia commented 5 years ago

Thank you!