mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:13:21 +08:00
Fix incorrect PlaylistItem drag handling
This commit is contained in:
parent
e2d11af4ef
commit
f4ddc0717b
@ -34,7 +34,19 @@ namespace osu.Game.Overlays.Music
|
||||
|
||||
public Action<BeatmapSetInfo> OnSelect;
|
||||
|
||||
public bool IsDraggable => handle.IsHovered;
|
||||
public bool IsDraggable { get; private set; }
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
{
|
||||
IsDraggable = handle.IsHovered;
|
||||
return base.OnMouseDown(state, args);
|
||||
}
|
||||
|
||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
||||
{
|
||||
IsDraggable = false;
|
||||
return base.OnMouseUp(state, args);
|
||||
}
|
||||
|
||||
private bool selected;
|
||||
public bool Selected
|
||||
|
Loading…
Reference in New Issue
Block a user