Skip to content

Commit

Permalink
Fix minimap fade animation
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 4, 2025
1 parent d2a20a1 commit 71632cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/CanvasViewport.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class Minimap : public Component, public Timer, public AsyncUpdater
void timerCallback() override
{
minimapAlpha = jmap<float>(0.2f, minimapAlpha, minimapTargetAlpha);
if(approximatelyEqual(minimapAlpha, minimapTargetAlpha))
if(approximatelyEqual(minimapAlpha, minimapTargetAlpha, Tolerance<float>{}
.withAbsolute(0.01f)))
{
minimapAlpha = minimapTargetAlpha;
stopTimer();
Expand Down

0 comments on commit 71632cf

Please sign in to comment.