mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Fix flinging a notification not correctly running Close
This commit is contained in:
parent
4ee3e8f087
commit
d92e000fe6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user