Hide tooltips when mouse buttons are pressed
This commit is contained in:
@@ -242,6 +242,12 @@ namespace FlaxEngine.GUI
|
||||
if (_window)
|
||||
_window.Position = mousePos + TooltipOffset;
|
||||
}
|
||||
|
||||
if (Input.Mouse.IsAnyButtonDown || Math.Abs(Input.Mouse.ScrollDelta) > Mathf.Epsilon)
|
||||
{
|
||||
// Hide popup when buttons are pressed
|
||||
Hide();
|
||||
}
|
||||
|
||||
base.Update(deltaTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user