Skip to content

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

Open
fyue wants to merge 1 commit into
eduardolundgren:masterfrom
fyue:fyue/bug-fixed
Open

Fixed the bug when emit('stop') the requestAnimationFrame callback still run#320
fyue wants to merge 1 commit into
eduardolundgren:masterfrom
fyue:fyue/bug-fixed

Conversation

@fyue
Copy link
Copy Markdown

@fyue fyue commented Jun 3, 2018

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

@shershen08
Copy link
Copy Markdown

that one worked like charm !

@aliosv
Copy link
Copy Markdown

aliosv commented Dec 27, 2018

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

@BhavitChhatralia
Copy link
Copy Markdown

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants