Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin doesn't work on safari #20

Closed
yamenshahin opened this issue Oct 2, 2014 · 5 comments
Closed

The plugin doesn't work on safari #20

yamenshahin opened this issue Oct 2, 2014 · 5 comments

Comments

@yamenshahin
Copy link

I tested this plugin. It doesn't work on safari

No movement

@yamenshahin
Copy link
Author

I used this http://stackoverflow.com/questions/17000394/requestanimationframe-not-available-in-safari-how-to-do-fluid-animations

And changed this code:
snowTimeout = requestAnimationFrame(function(){snow()});
to this
snowTimeout = window.requestAnimationFrame(function(){snow()});

Thanks for helpful plugin

@loktar00
Copy link
Owner

loktar00 commented Oct 5, 2014

ah wow.. I didn't realize Safari didn't have requestAnimationFrame, in the last update I pulled out the polyfill for it, suppose I'll add it back!

@Lechus
Copy link

Lechus commented Oct 13, 2014

Maybe use modernizr like function to detect if requestAnimationFrame is available?

@loktar00
Copy link
Owner

eh I'd prefer not to add a large dependency like that Ill just readd the polyfill

@loktar00 loktar00 mentioned this issue Nov 19, 2014
@loktar00
Copy link
Owner

#25 Moved to this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants