mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 05:09:57 +08:00
Fix ladder permanently disappearing after being dragged offscreen
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user