Make bounding box shrink faster to allow for rapid flinging

This commit is contained in:
Dean Herbert 2022-09-12 16:39:46 +09:00
parent bd3673baa9
commit a506178571

View File

@ -278,8 +278,8 @@ namespace osu.Game.Overlays.Notifications
{
var childBounding = Children.First().BoundingBox;
if (X < 0) childBounding *= new Vector2(1, Math.Max(0, 1 + (X / 800)));
if (Y > 0) childBounding *= new Vector2(1, Math.Max(0, 1 - (Y / 800)));
if (X < 0) childBounding *= new Vector2(1, Math.Max(0, 1 + (X / 300)));
if (Y > 0) childBounding *= new Vector2(1, Math.Max(0, 1 - (Y / 200)));
return childBounding;
}