UI: fixed missing console call for mouse wheel

master
Martin Gerhardy 2022-03-28 19:33:28 +02:00
parent 366b021da3
commit ed587bc092
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ void IMGUIApp::onMouseMotion(void *windowHandle, int32_t x, int32_t y, int32_t r
}
bool IMGUIApp::onMouseWheel(int32_t x, int32_t y) {
if (_console.onMouseWheel(x, y)) {
return true;
}
if (!Super::onMouseWheel(x, y)) {
SDL_Event ev {};
ev.type = SDL_MOUSEWHEEL;