Permalink
Browse files

double the interval for setInterval to improve the delta for comparin…

…g time-based motion
  • Loading branch information...
1 parent 04d193a commit a36b410c4f99ba4ce2c4175dfc65c4862d633eb5 @kmcminn kmcminn committed May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ch05/example-5.14/example2.js
@@ -588,5 +588,5 @@ timeBasedMotionCheckbox.addEventListener('click', function (e) {
topContext.font = '36px Helvetica';
drawBackground();
startTime = +new Date;
-setInterval(animateTopLeft, 1000/60);
+setInterval(animateTopLeft, 1000/120);
}();

0 comments on commit a36b410

Please sign in to comment.