Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Nov 28, 2024
1 parent 7c655eb commit 5f371e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/number-flow/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ abstract class Section {
const offset = rect[this.justify]
const dx = this._prevOffset! - offset

// Technically checking for children could get weird during multiple interruptions
// but probably still worth it;
if (dx && this.children.size)
this.el.animate(
{
Expand Down

0 comments on commit 5f371e5

Please sign in to comment.