This way, changing the computer clock can't mess up animations. Resolves #1367.
There is a fallback if window.performance isn't available, and I left that intact.
I was going to update Timer.stamp() to use self.performance, because that's available in web workers as well as normal windows. It would look like this:
However, I later realized that I was editing the standard library version of Timer, and my changes would be overwritten the next time we updated it. So I'm leaving the change out, but perhaps it could be submitted upstream.
This way, changing the computer clock can't mess up animations. Resolves #1367.
There is a fallback if
window.performance
isn't available, and I left that intact.I was going to update
Timer.stamp()
to useself.performance
, because that's available in web workers as well as normal windows. It would look like this:However, I later realized that I was editing the standard library version of
Timer
, and my changes would be overwritten the next time we updated it. So I'm leaving the change out, but perhaps it could be submitted upstream.