Skip to content

Commit

Permalink
Merge branch 'main' into @xnameTM/convert-ts-to-js-2
Browse files Browse the repository at this point in the history
  • Loading branch information
xnameTM committed Apr 19, 2024
2 parents 2ada83b + 41ff27a commit 235719e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/static/examples/Marquee.js
Expand Up @@ -56,9 +56,8 @@ const ChildrenScroller = ({
}, [reverse]);

useFrameCallback((i) => {
offset.value +=
(coeff.value * ((i.timeSincePreviousFrame ?? 1) * childrenWidth)) /
duration;
// prettier-ignore
offset.value += (coeff.value * ((i.timeSincePreviousFrame ?? 1) * childrenWidth)) / duration;
offset.value = offset.value % childrenWidth;
}, true);

Expand Down

0 comments on commit 235719e

Please sign in to comment.