float chat_maximized_reset_scroll_time;
float HUD_Panel_Chat_InputEvent(float bInputType, float nPrimary, float nSecondary)
{
+ if(!autocvar__con_chat_maximized)
+ return false;
+
if(bInputType == 3)
{
mousepos.x = nPrimary;
// at this point bInputType can only be 0 or 1 (key pressed or released)
bool key_pressed = (bInputType == 0);
- if(!autocvar__con_chat_maximized)
- return false;
-
if(nPrimary == K_MWHEELUP)
{
if (!key_pressed)