mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Don't scroll the window if it lost keyboard focus
This commit is contained in:
@@ -1302,6 +1302,10 @@ void game_handle_edge_scroll()
|
||||
if (mainWindow->viewport == NULL)
|
||||
return;
|
||||
|
||||
uint32 window_flags = SDL_GetWindowFlags(gWindow);
|
||||
if ((window_flags & SDL_WINDOW_INPUT_FOCUS) == 0)
|
||||
return;
|
||||
|
||||
scrollX = 0;
|
||||
scrollY = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user