From 1399d4ad51f6bb17964b9d4c66316f01dc7d5b11 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 8 Jan 2014 00:40:52 +0100 Subject: [PATCH] HUD config: when a menu dialog is opened don't block mousepos read as it leads to cursor jumps in the interaction with the menu --- qcsrc/client/hud_config.qc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/hud_config.qc b/qcsrc/client/hud_config.qc index d36145484..1836ba23f 100644 --- a/qcsrc/client/hud_config.qc +++ b/qcsrc/client/hud_config.qc @@ -651,10 +651,6 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) if(!autocvar__hud_configure) return false; - // block any input while a menu dialog is fading - if(autocvar__menu_alpha) - return true; - if(bInputType == 3) { mousepos_x = nPrimary; @@ -662,6 +658,11 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) return true; } + // block any input while a menu dialog is fading + // don't block mousepos read as it leads to cursor jumps in the interaction with the menu + if(autocvar__menu_alpha) + return true; + // allow console bind to work string con_keys; float keys; -- 2.39.2