We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1445281 + ed625c3 commit 22aa66aCopy full SHA for 22aa66a
1 file changed
v2-community/src/utils/RequestAnimationFrame.js
@@ -42,7 +42,7 @@ Phaser.RequestAnimationFrame = function(game, forceSetTimeOut) {
42
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; x++)
43
{
44
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
45
- window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'];
+ window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'];
46
}
47
48
/**
0 commit comments