Skip to content

Commit

Permalink
Further improve cursor visibility in chat mode by moving it onto the …
Browse files Browse the repository at this point in the history
…scroll bar
  • Loading branch information
TomyLobo committed Jun 8, 2016
1 parent c151c8a commit d2216b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mp/src/game/client/hud_basechat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,9 @@ void CBaseHudChat::StartMessageMode( int iMessageModeType )
m_pChatInput->SetMouseInputEnabled( true );

// Pick a target panel to place the mouse cursor on so people notice it.
Panel *pTargetPanel = this;
Panel *pTargetPanel = GetChatHistory()->FindChildByName("ScrollBar");
if (!pTargetPanel) pTargetPanel = GetChatHistory();
if (!pTargetPanel) pTargetPanel = GetChatInput();

// Retrieve its size
int w, h;
Expand Down

0 comments on commit d2216b1

Please sign in to comment.