Skip to content

Commit

Permalink
refactor: improve a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Dec 9, 2022
1 parent 870f9df commit cd7a6b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smoothie.js
Expand Up @@ -840,7 +840,8 @@

time = (time || nowMillis) - (this.delay || 0);

// Round time down to pixel granularity, so motion appears smoother.
// Round time down to pixel granularity, so that pixel sample values remain the same,
// just shifted 1px to the left, so motion appears smoother.
time -= time % this.options.millisPerPixel;

if (!this.isAnimatingScale) {
Expand Down

0 comments on commit cd7a6b5

Please sign in to comment.