Skip to content

Conversation

@tgohn
Copy link

@tgohn tgohn commented Mar 10, 2016

In Safari iOS 8, requestAnimationFrame is present but performance.now is not.

So, inconsistent of time "now" will happen since we rely on both time passed in by requestAnimationFrame (time since navigationStart) and Date.now() (time since epoch) in other cases.

With this changeset, I am calling performance.now unnecessarily on mordern browsers on every wake() though 😕

In Safari iOS 8, `requestAnimationFrame` is present but
`performance.now` is not.

So, inconsistent of time now will happen when we both rely on `time`
passed in by `requestAnimationFrame` (time since navigationStart) vs
Date.now() (time since epoch) in other cases.
@mbostock mbostock self-assigned this Apr 29, 2016
@mbostock mbostock closed this in d26677e May 13, 2016
@mbostock
Copy link
Member

Thanks for the report. I chose a slightly different fix that avoids the kludge on modern browsers.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants