Fixed issue #956: mouse wheel scroll toggles active add-ons
authorArian Behvandnejad <buggy@lavabit.com>
Tue, 16 Apr 2013 22:23:48 +0000 (02:53 +0430)
committerLMH <lmh.0013@gmail.com>
Tue, 23 Apr 2013 04:21:51 +0000 (18:21 -1000)
src/gui/menu.cpp

index b05d41e..21df675 100644 (file)
@@ -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);