diff options
-rw-r--r-- | window.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1020,7 +1020,9 @@ void MouseLoop() if (_game_mode == GM_MENU) return; - if (mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL)) { + // only allow zooming in-out in main window, or in viewports + if ( mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL) && + (w->window_class == WC_MAIN_WINDOW || w->window_class == WC_EXTRA_VIEW_PORT) ) { ZoomInOrOutToCursorWindow(mousewheel < 0,w); } |