Fix ladder permanently disappearing after being dragged offscreen

This commit is contained in:
smoogipoo 2019-06-21 15:47:41 +09:00
parent 5a34794240
commit 66b8dc2de7

View File

@ -3,6 +3,7 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Input.Events;
using osuTK;
@ -18,6 +19,8 @@ namespace osu.Game.Tournament.Screens.Ladder
private float scale = 1;
protected override bool ComputeIsMaskedAway(RectangleF maskingBounds) => false;
protected override bool OnDrag(DragEvent e)
{
this.MoveTo(target += e.Delta, 1000, Easing.OutQuint);