Skip to content

Commit

Permalink
Fix Fade.createFadeInTransition bug when both newScreen and oldScreen…
Browse files Browse the repository at this point in the history
… present. (#1810)

Originally, newScreen and oldScreen were passed, resulting in a crossfade effect.
Now, only newScreen is passed, resulting in a fade in.
  • Loading branch information
Timothy John authored Mar 24, 2021
1 parent 6c5a22b commit d50f889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/feathers/motion/Fade.as
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ package feathers.motion
{
oldScreen.alpha = 1;
}
var tween:FadeTween = new FadeTween(newScreen, oldScreen, duration, ease, onComplete, tweenProperties);
var tween:FadeTween = new FadeTween(newScreen, null, duration, ease, onComplete, tweenProperties);
}
else
{
Expand Down Expand Up @@ -339,4 +339,4 @@ class FadeTween extends Tween
this._onCompleteCallback();
}
}
}
}

0 comments on commit d50f889

Please sign in to comment.