mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 10:33:01 +08:00
Make bounding box shrink faster to allow for rapid flinging
This commit is contained in:
parent
bd3673baa9
commit
a506178571
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user