X Tutup
Skip to content
This repository was 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
majido wants to merge 1 commit intoangular:masterfrom
majido:animation-timestamp-bug
Closed

fix: Use Date.now() instead of Event.timeStamp to detect animation end#13497
majido wants to merge 1 commit intoangular:masterfrom
majido:animation-timestamp-bug

Conversation

@majido
Copy link
Copy Markdown

@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
Copy Markdown
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

X Tutup