Skip to content

Commit

Permalink
Fix EmoIcon overgrowth
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhael-Danilov committed Jan 23, 2025
1 parent 70eabda commit 8437dd0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ public void update() {
if (growing) {
setScale( scale.x + elapsed * timeScale );
if (scale.x > maxSize) {
setScale( maxSize );
growing = false;
}
} else {
setScale( scale.x - elapsed * timeScale );
if (scale.x < 1) {
setScale( 1 );
growing = true;
}
}
Expand Down

0 comments on commit 8437dd0

Please sign in to comment.