Fixe me.state.pause() when using requestAnimationFrame (thanks Killian)