Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix: Use Date.now() instead of Event.timeStamp to detect animation end #13497

Closed
wants to merge 1 commit into from

Conversation

majido
Copy link

@majido majido commented Dec 10, 2015

Chrome and Firefox are planning to change event.timeStamp to be a
high resolution time instead of epoch time. This means that the
event.timeStamp will not longer be compatible with Date.now()[1, 2]

Instead we can use Date.now() at the moment when the event is
received by event listener instead.

This addresses #13496

[1] http://crbug.com/538600
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1231619#c3

Chrome and Firefox are planning to change event.timeStamp to be a
high resolution time instead of epoch time. This means that the
event.timeStamp will not longer be compatible with Date.now()[1, 2]

Instead we can use Date.now() at the moment when the event is
received by event listener instead.

[1] http://crbug.com/538600
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1231619#c3
@petebacondarwin
Copy link
Contributor

Duplicate of #13495
Sorry and thanks @majido

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

Successfully merging this pull request may close these issues.

3 participants