From 37e4a7bfe92f90f3eccaab4f6b88e27a567b911f Mon Sep 17 00:00:00 2001 From: Arian Behvandnejad Date: Wed, 17 Apr 2013 02:53:48 +0430 Subject: [PATCH] Fixed issue #956: mouse wheel scroll toggles active add-ons --- src/gui/menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/menu.cpp b/src/gui/menu.cpp index b05d41e16..21df675cb 100644 --- a/src/gui/menu.cpp +++ b/src/gui/menu.cpp @@ -779,6 +779,7 @@ Menu::event(const SDL_Event& event) switch(event.type) { case SDL_MOUSEBUTTONDOWN: + if(event.button.button == SDL_BUTTON_LEFT) { int x = int(event.motion.x * float(SCREEN_WIDTH)/g_screen->w); int y = int(event.motion.y * float(SCREEN_HEIGHT)/g_screen->h); -- 2.11.0