mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Merge pull request #51 from haxiomic/patch-1
Added requestAnimationFrame
This commit is contained in:
commit
651cf00324
@ -19,7 +19,8 @@ define([
|
|||||||
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
|
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return window.webkitRequestAnimationFrame ||
|
return window.requestAnimationFrame ||
|
||||||
|
window.webkitRequestAnimationFrame ||
|
||||||
window.mozRequestAnimationFrame ||
|
window.mozRequestAnimationFrame ||
|
||||||
window.oRequestAnimationFrame ||
|
window.oRequestAnimationFrame ||
|
||||||
window.msRequestAnimationFrame ||
|
window.msRequestAnimationFrame ||
|
||||||
@ -28,4 +29,4 @@ define([
|
|||||||
window.setTimeout(callback, 1000 / 60);
|
window.setTimeout(callback, 1000 / 60);
|
||||||
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user