mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Fix being able to drag after already closing a notification
This commit is contained in:
parent
8e6b2796eb
commit
bd3673baa9
@ -70,6 +70,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
[Resolved]
|
||||
private OverlayColourProvider colourProvider { get; set; } = null!;
|
||||
|
||||
public override bool PropagatePositionalInputSubTree => base.PropagatePositionalInputSubTree && !WasClosed;
|
||||
|
||||
private bool isInToastTray;
|
||||
|
||||
/// <summary>
|
||||
@ -327,7 +329,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
velocity.Y += (float)Clock.ElapsedFrameTime * 0.005f;
|
||||
Position += (float)Clock.ElapsedFrameTime * velocity;
|
||||
}
|
||||
else
|
||||
else if (Clock.ElapsedFrameTime > 0)
|
||||
{
|
||||
Vector2 change = (Position - lastPosition) / (float)Clock.ElapsedFrameTime;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user