Fix flinging a notification not correctly running Close

This commit is contained in:
Dean Herbert 2022-09-12 19:00:03 +09:00
parent 4ee3e8f087
commit d92e000fe6

View File

@ -254,11 +254,9 @@ namespace osu.Game.Overlays.Notifications
if (runFlingAnimation && dragContainer.FlingLeft())
this.FadeOut(600, Easing.In);
else
{
Closed?.Invoke();
this.FadeOut(100);
}
Closed?.Invoke();
Expire();
}
@ -311,7 +309,7 @@ namespace osu.Game.Overlays.Notifications
protected override void OnDragEnd(DragEndEvent e)
{
if (Rotation < -10 || velocity.X < -0.3f)
FlingLeft();
notification.Close(true);
else
ResetPosition();
@ -362,7 +360,6 @@ namespace osu.Game.Overlays.Notifications
flinging = true;
ClearTransforms();
notification.Close(true);
return true;
}