mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +01:00
Fix dropdown tooltips stuck open if mouse over empty space
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
0.4.29 (in development)
|
||||
------------------------------------------------------------------------
|
||||
- Fix: [#25451] Dropdown item tooltips stay open if the mouse is moved over an empty space.
|
||||
|
||||
0.4.28 (2025-11-01)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -1466,6 +1466,11 @@ namespace OpenRCT2
|
||||
int32_t dropdown_index = DropdownIndexFromPoint(screenCoords, w);
|
||||
if (dropdown_index == -1)
|
||||
{
|
||||
if (gDropdown.hasTooltips && gDropdown.lastTooltipHover != -1)
|
||||
{
|
||||
gDropdown.lastTooltipHover = -1;
|
||||
WindowTooltipClose();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user