Skip to content

Commit

Permalink
Keep all dropdowns open in touch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Apr 20, 2024
1 parent a2dcbbe commit aed25ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openrct2-ui/windows/Dropdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ namespace OpenRCT2::Ui::Windows
int32_t width)
{
InputSetFlag(static_cast<INPUT_FLAGS>(INPUT_FLAG_DROPDOWN_STAY_OPEN | INPUT_FLAG_DROPDOWN_MOUSE_UP), false);
if (flags & Dropdown::Flag::StayOpen)
if (flags & Dropdown::Flag::StayOpen || gConfigInterface.TouchMode)
InputSetFlag(INPUT_FLAG_DROPDOWN_STAY_OPEN, true);

WindowDropdownClose();
Expand Down Expand Up @@ -377,7 +377,7 @@ namespace OpenRCT2::Ui::Windows
int32_t itemHeight, int32_t numColumns)
{
InputSetFlag(static_cast<INPUT_FLAGS>(INPUT_FLAG_DROPDOWN_STAY_OPEN | INPUT_FLAG_DROPDOWN_MOUSE_UP), false);
if (flags & Dropdown::Flag::StayOpen)
if (flags & Dropdown::Flag::StayOpen || gConfigInterface.TouchMode)
InputSetFlag(INPUT_FLAG_DROPDOWN_STAY_OPEN, true);

// Close existing dropdown
Expand Down

0 comments on commit aed25ba

Please sign in to comment.