From 990c14fbe077dd892f71a80881986c3ebad3d225 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 20 Apr 2017 15:51:30 +0900 Subject: [PATCH] Keep tooltip's current target while the main button is pressed. Handles drag operations better. --- osu.Game/Graphics/Cursor/TooltipContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Cursor/TooltipContainer.cs b/osu.Game/Graphics/Cursor/TooltipContainer.cs index c06f85e650..30acedb4e7 100644 --- a/osu.Game/Graphics/Cursor/TooltipContainer.cs +++ b/osu.Game/Graphics/Cursor/TooltipContainer.cs @@ -66,7 +66,7 @@ namespace osu.Game.Graphics.Cursor if (currentlyDisplayed?.Hovering != true) { - if (currentlyDisplayed != null) + if (currentlyDisplayed != null && !state.Mouse.HasMainButtonPressed) { tooltip.Delay(100); tooltip.FadeOut(500, EasingTypes.OutQuint);