mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Fix random button hover state not correctly being reset on right click
This commit is contained in:
parent
dc421bd2af
commit
94b184712d
@ -119,14 +119,13 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
protected override void OnMouseUp(MouseUpEvent e)
|
protected override void OnMouseUp(MouseUpEvent e)
|
||||||
{
|
{
|
||||||
|
base.OnMouseUp(e);
|
||||||
|
|
||||||
if (e.Button == MouseButton.Right && IsHovered)
|
if (e.Button == MouseButton.Right && IsHovered)
|
||||||
{
|
{
|
||||||
rewindSearch = true;
|
rewindSearch = true;
|
||||||
TriggerClick();
|
TriggerClick();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnMouseUp(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||||
|
Loading…
Reference in New Issue
Block a user