]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
check whether stop ctrl-tab selection only at the mouse click
authorterencehill <piuntn@gmail.com>
Wed, 15 Dec 2010 19:16:38 +0000 (20:16 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 15 Dec 2010 19:16:38 +0000 (20:16 +0100)
qcsrc/client/hud.qc

index e7273bae138a832533e2f08bd360d885b4d2e3f2..f4ebdec557a84e499f063628d27ee065ac745fd4 100644 (file)
@@ -1514,14 +1514,14 @@ void HUD_Panel_Mouse()
 
        if(mouseClicked)
        {
-               if (tab_panel != -1)
-               {
-                       //stop ctrl-tab selection
-                       tab_panel = -1;
-                       reset_tab_panels();
-               }
                if(prevMouseClicked == 0)
                {
+                       if (tab_panel != -1)
+                       {
+                               //stop ctrl-tab selection
+                               tab_panel = -1;
+                               reset_tab_panels();
+                       }
                        HUD_Panel_Highlight(); // sets highlightedPanel, highlightedAction, panel_click_distance, panel_click_resizeorigin
                                                                        // and calls HUD_Panel_UpdatePosSizeForId() for the highlighted panel
                        if (highlightedPanel != -1)