Created
June 6, 2016 19:07
-
-
Save joliss/10bfa819bccb915a2a08b3e8efbf76e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/velocity.js b/velocity.js | |
index c8b59e7..71ed48b 100644 | |
--- a/velocity.js | |
+++ b/velocity.js | |
@@ -3365,7 +3365,7 @@ return function (global, window, document, undefined) { | |
if (timestamp) { | |
/* We ignore RAF's high resolution timestamp since it can be significantly offset when the browser is | |
under high stress; we opt for choppiness over allowing the browser to drop huge chunks of frames. */ | |
- var timeCurrent = (new Date).getTime(); | |
+ var timeCurrent = window.VELOCITY_TIME_FUNCTION(timestamp); | |
/******************** | |
Call Iteration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment