mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:47:52 +08:00
Rearrange tracks in OnDrag
This commit is contained in:
parent
12be5b417d
commit
636492b9cf
@ -140,13 +140,7 @@ namespace osu.Game.Overlays.Music
|
||||
return true;
|
||||
}
|
||||
|
||||
// Maybe render some ghost text
|
||||
protected override bool OnDrag(InputState state)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override bool OnDragEnd(InputState state)
|
||||
{
|
||||
int src = (int)Depth;
|
||||
int dst = MathHelper.Clamp((int)(state.Mouse.Position.Y / Height), 0, playlist.Count - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user