mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #883 from adrian17/window-scrolling
Don't scroll the window if it lost keyboard focus
This commit is contained in:
commit
a432c62684
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue