Up to date polyfill for requestAnimationFrame

后端 未结 5 905
北恋
北恋 2021-01-12 02:51

http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision tells me that recently (Chrome 20) requestAnimationFrame has gained a new

5条回答
  •  离开以前
    2021-01-12 03:33

    The change for hi-res timing only affects the parameter to the callback. I don't believe any polyfills explicitly reference the parameter, it just depends on how you use it. So the polyfills don't need updating and should be working just fine already - just be careful about how you use the parameter to the RAF callback, and if you don't, it's nothing to worry about!

提交回复
热议问题