mrdoob/three.js — Issue #1348: bug in setting window.cancelAnimationFrame ?
Author: mochizukid
Created: 2012-02-17 03:02:52+00:00
State: open

In Three.js at line 26:
window[vendors[x]+'RequestCancelAnimationFrame'];

# I don't check other browsers though
In chrome,
they have "window.webkitCancelRequestAnimationFrame",
instead of "window.webkitRequestCancelAnimationFrame".

Due to the code above,
the code set window.requestAnimationFrame is connected to webkitCancelRequestAnimationFrame,
but window.cancelAnimationFrame is connected to clearTimeout.
and then, the animation loop doesn't stop when I called cancelAnimationFrame.