mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 04:33: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 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;
|
private bool selected;
|
||||||
public bool Selected
|
public bool Selected
|
||||||
|
Loading…
Reference in New Issue
Block a user