-
Notifications
You must be signed in to change notification settings - Fork 183
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 globe spins slower in safari #28
Comments
Turns out is twice as fast for some reason lol; workaround meanwhile: // Detect browser
const isSafari = Boolean(
navigator.vendor &&
navigator.vendor.indexOf("Apple") > -1 &&
navigator.userAgent &&
navigator.userAgent.indexOf("CriOS") == -1 &&
navigator.userAgent.indexOf("FxiOS") == -1
);
// The onRender property on the configuration: (just double the value for safari)
state.phi = phi += isSafari ? 0.006 : 0.003; |
That's weird, is it possible that there's some FPS-limiting ( |
I'll check but I have never tweaked those settings, so they should be the default... Does it work well for you? |
Yeah it works well for me |
Alright, ill make some tests and see if I come up with anything |
This could be related to safari not supporting high refresh rates in older versions. A possible fix for such animation speed differences would be to compute the delta time as suggested in #13. Here's a good read for the same. |
Tracking in #13. |
Same configuration, globe spins faster in chrome/firefox than safari
The text was updated successfully, but these errors were encountered: