mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 21:52:57 +08:00
Fix incorrect PlaylistItem drag handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user