1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 10:47:28 +08:00

Keep tooltip's current target while the main button is pressed.

Handles drag operations better.
This commit is contained in:
Dean Herbert 2017-04-20 15:51:30 +09:00
parent 30c3c932b1
commit 990c14fbe0
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -66,7 +66,7 @@ namespace osu.Game.Graphics.Cursor
if (currentlyDisplayed?.Hovering != true) if (currentlyDisplayed?.Hovering != true)
{ {
if (currentlyDisplayed != null) if (currentlyDisplayed != null && !state.Mouse.HasMainButtonPressed)
{ {
tooltip.Delay(100); tooltip.Delay(100);
tooltip.FadeOut(500, EasingTypes.OutQuint); tooltip.FadeOut(500, EasingTypes.OutQuint);