1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Rearrange tracks in OnDrag

This commit is contained in:
Kelvin 2017-08-28 22:59:28 -07:00
parent 12be5b417d
commit 636492b9cf

View File

@ -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);