File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/game/client/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1131,20 +1131,20 @@ void CGameConsole::OnRender()
11311131 {
11321132 pConsole->m_MouseRelease = GetMousePosition ();
11331133 }
1134- const float ScaledRowHeight = RowHeight / ScreenSize.y ;
1135- if (absolute (m_TouchState.m_ScrollAmount .y ) >= ScaledRowHeight )
1134+ const float ScaledLineHeight = LineHeight / ScreenSize.y ;
1135+ if (absolute (m_TouchState.m_ScrollAmount .y ) >= ScaledLineHeight )
11361136 {
11371137 if (m_TouchState.m_ScrollAmount .y > 0 .0f )
11381138 {
11391139 pConsole->m_BacklogCurLine += pConsole->GetLinesToScroll (-1 , 1 );
1140- m_TouchState.m_ScrollAmount .y -= ScaledRowHeight ;
1140+ m_TouchState.m_ScrollAmount .y -= ScaledLineHeight ;
11411141 }
11421142 else
11431143 {
11441144 --pConsole->m_BacklogCurLine ;
11451145 if (pConsole->m_BacklogCurLine < 0 )
11461146 pConsole->m_BacklogCurLine = 0 ;
1147- m_TouchState.m_ScrollAmount .y += ScaledRowHeight ;
1147+ m_TouchState.m_ScrollAmount .y += ScaledLineHeight ;
11481148 }
11491149 pConsole->m_HasSelection = false ;
11501150 }
You can’t perform that action at this time.
0 commit comments