Update index.html
Chrome "requestAnimationFrame" new implementation
This commit is contained in:
parent
eafa2d43a4
commit
ca55faf79f
@ -321,7 +321,7 @@
|
|||||||
// crossbrowser implementation for requestAnimationFrame
|
// crossbrowser implementation for requestAnimationFrame
|
||||||
var requestAnimation = (function() {
|
var requestAnimation = (function() {
|
||||||
return window.requestAnimationFrame
|
return window.requestAnimationFrame
|
||||||
|| window.webkitRequestAnimationFrame
|
//|| window.webkitRequestAnimationFrame
|
||||||
|| window.mozRequestAnimationFrame
|
|| window.mozRequestAnimationFrame
|
||||||
|| window.oRequestAnimationFrame
|
|| window.oRequestAnimationFrame
|
||||||
|| window.msRequestAnimationFrame
|
|| window.msRequestAnimationFrame
|
||||||
@ -1548,4 +1548,4 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="game"></div>
|
<div id="game"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user