| 293 | } |
| 294 | |
| 295 | void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override |
| 296 | { |
| 297 | if (widget != WID_DM_ITEMS) return; |
| 298 | int result, click_result; |
| 299 | if (this->GetDropDownItem(result, click_result)) { |
| 300 | this->click_delay = 4; |
| 301 | this->selected_result = result; |
| 302 | this->selected_click_result = click_result; |
| 303 | this->SetDirty(); |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | /** Rate limit how fast scrolling happens. */ |
| 308 | const IntervalTimer<TimerWindow> scroll_interval = {std::chrono::milliseconds(30), [this](auto) { |
no test coverage detected