You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For simplicity's sake, and since unprefixed rAF have been in the wild for a while, maybe simplify:
// check what requestAnimationFrame to use, and if// it's not supported, use the onscroll eventvarloop=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(callback){setTimeout(callback,1000/60);};
for:
// check what requestAnimationFrame to use, and if// it's not supported, use the onscroll eventvarloop=window.requestAnimationFrame||function(callback){setTimeout(callback,16);};
Also it looks like the onscroll event is not used, so the comment should be fixed?
For simplicity's sake, and since unprefixed rAF have been in the wild for a while, maybe simplify:
for:
Also it looks like the onscroll event is not used, so the comment should be fixed?
Browser support:
https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#Browser_compatibility
window.msRequestAnimationFrame
never existed anyway)If support for Safari 6.0 is a goal, maybe keep only the webkit prefix.
The text was updated successfully, but these errors were encountered: