Perform rewind with right click only if cursor didn't leave the button

This commit is contained in:
ansel 2022-12-05 23:38:45 +03:00
parent 224714efd5
commit b66409bd37

View File

@ -119,7 +119,7 @@ namespace osu.Game.Screens.Select
protected override void OnMouseUp(MouseUpEvent e)
{
if (e.Button == MouseButton.Right)
if (e.Button == MouseButton.Right && IsHovered)
{
rewindSearch = true;
TriggerClick();