mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
Fixed tile and scale sizes, Fixed Animation using RequestAnimationFrame
This commit is contained in:
parent
01043a2ea3
commit
ff6456fd47
6 changed files with 137 additions and 116 deletions
15
lib/RequestAnimationFrame.js
Normal file
15
lib/RequestAnimationFrame.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
define(['Chuck/Settings'], function(Settings) {
|
||||
|
||||
var requestAnimFrame = (function(){
|
||||
return window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
window.oRequestAnimationFrame ||
|
||||
window.msRequestAnimationFrame ||
|
||||
function( callback ){
|
||||
setTimeout(callback, Settings.BOX2D_TIME_STEP * 1000);
|
||||
};
|
||||
})();
|
||||
|
||||
return requestAnimFrame;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue