mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 02:22:55 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maybe render some ghost text
|
|
||||||
protected override bool OnDrag(InputState state)
|
protected override bool OnDrag(InputState state)
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnDragEnd(InputState state)
|
|
||||||
{
|
{
|
||||||
int src = (int)Depth;
|
int src = (int)Depth;
|
||||||
int dst = MathHelper.Clamp((int)(state.Mouse.Position.Y / Height), 0, playlist.Count - 1);
|
int dst = MathHelper.Clamp((int)(state.Mouse.Position.Y / Height), 0, playlist.Count - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user