-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngAnimate + $$RAFProvider : crashes when browser doesn't support requestAnimationFrame or is prefixed with 'moz' #6535
Comments
Yes let's add I didn't think that Firefox still needed it. I guess the error showed up on an older version of FF. |
Can you verify that adding |
Yes indeed the error occurs in an old version of FF (20). |
…refox The recent $$RAFProvider which is a wrapper for the native requestAnimationFrame method doesn't use the mozRequestAnimationFrame. Old versions of FF (20 for example) crash if ngAnimate is included No breaking changes and fix issue angular#6535
…refox The recent $$RAFProvider which is a wrapper for the native requestAnimationFrame method doesn't use the mozRequestAnimationFrame. Old versions of FF (20 for example) crash if ngAnimate is included No breaking changes and fix issue angular#6535
…refox The recent $$RAFProvider which is a wrapper for the native requestAnimationFrame method doesn't use the mozRequestAnimationFrame. Old versions of FF (20 for example) crash if ngAnimate is included No breaking changes and fix issue angular#6535
That's not true. Opera has had transitions since 10.5 (which is really old) and even the latest Presto-based version, 12.16 doesn't have rAF. Opera Presto is still popular in some countries like Russia. |
Right. Yes. My mistake on this. I'm putting together a patch that uses the |
@matsko If you're putting the timeout in, maybe the Angular 2.0 is a rewrite anyway so the |
I agree with @mzgol, e.g. Android 2.3 browsers don't support rAF but do support CSS transitions/animations. |
@tbosch Not only 2.3. :) No Android Browser version supports requestAnimationFrame, only Chrome mobile does: http://caniuse.com/requestanimationframe |
Why are we adding this? Per the browser support policy at https://docs.angularjs.org/misc/faq#what-browsers-does-angular-work-with-, only the latest versions of Firefox are supported; it's a hard sell to consider 20 as a new version. |
The RAFProvider is adding a
supported
property to indicate whether the browser supports or not therequestAnimationFrame
(seeangular.js/src/ng/raf.js
Line 18 in 04d7317
I would be happy to make a pull request on this but my question is :
is it best to add a fallback on a timeout directly in the RAFProvider or to check for the
supported
property every time it is used ?I think just adding the
mozRequestAnimationFrame
would be a good start.The text was updated successfully, but these errors were encountered: