Skip to content

Instantly share code, notes, and snippets.

@joliss
Created June 6, 2016 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joliss/10bfa819bccb915a2a08b3e8efbf76e5 to your computer and use it in GitHub Desktop.
Save joliss/10bfa819bccb915a2a08b3e8efbf76e5 to your computer and use it in GitHub Desktop.
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