mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Don't play fling animation when activating a notification
This commit is contained in:
@ -227,7 +227,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
if (e.Button == MouseButton.Left)
|
||||
Activated?.Invoke();
|
||||
|
||||
Close(true);
|
||||
Close(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -245,13 +245,13 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
public bool WasClosed;
|
||||
|
||||
public virtual void Close(bool userTriggered)
|
||||
public virtual void Close(bool runFlingAnimation)
|
||||
{
|
||||
if (WasClosed) return;
|
||||
|
||||
WasClosed = true;
|
||||
|
||||
if (userTriggered && dragContainer.FlingLeft())
|
||||
if (runFlingAnimation && dragContainer.FlingLeft())
|
||||
this.FadeOut(600, Easing.In);
|
||||
else
|
||||
{
|
||||
|
@ -235,12 +235,12 @@ namespace osu.Game.Overlays.Notifications
|
||||
});
|
||||
}
|
||||
|
||||
public override void Close(bool userTriggered)
|
||||
public override void Close(bool runFlingAnimation)
|
||||
{
|
||||
switch (State)
|
||||
{
|
||||
case ProgressNotificationState.Cancelled:
|
||||
base.Close(userTriggered);
|
||||
base.Close(runFlingAnimation);
|
||||
break;
|
||||
|
||||
case ProgressNotificationState.Active:
|
||||
|
Reference in New Issue
Block a user