All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.requestAnimationFrame.min.js Maven / Gradle / Ivy

The newest version!
!function(n){var e;if("mozRequestAnimationFrame"in n?e="moz":"webkitRequestAnimationFrame"in n&&(e="webkit"),e)n.requestAnimationFrame=function(t){return n[e+"RequestAnimationFrame"](function(){t(performance.now())})},n.cancelAnimationFrame=n[e+"CancelAnimationFrame"];else{var t=Date.now();n.requestAnimationFrame=function(n){if("function"!=typeof n)throw new TypeError(n+" is not a function");var e=Date.now(),i=16+t-e;return i<0&&(i=0),t=e,setTimeout(function(){t=Date.now(),n(performance.now())},i)},n.cancelAnimationFrame=function(n){clearTimeout(n)}}}(this);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy