Fix random button hover state not correctly being reset on right click

This commit is contained in:
Dean Herbert 2023-05-17 14:38:58 +09:00
parent dc421bd2af
commit 94b184712d
1 changed files with 2 additions and 3 deletions

View File

@ -119,14 +119,13 @@ protected override bool OnClick(ClickEvent e)
protected override void OnMouseUp(MouseUpEvent e)
{
base.OnMouseUp(e);
if (e.Button == MouseButton.Right && IsHovered)
{
rewindSearch = true;
TriggerClick();
return;
}
base.OnMouseUp(e);
}
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)