mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Merge pull request #7924 from furo321/keep-scroll-during-selection
Keep console scrolling position during text selection
This commit is contained in:
commit
8214e26132
|
@ -1126,7 +1126,7 @@ void CGameConsole::OnRender()
|
||||||
pConsole->UpdateSearch();
|
pConsole->UpdateSearch();
|
||||||
|
|
||||||
// keep scroll position when new entries are printed.
|
// keep scroll position when new entries are printed.
|
||||||
if(pConsole->m_BacklogCurLine != 0)
|
if(pConsole->m_BacklogCurLine != 0 || pConsole->m_HasSelection)
|
||||||
{
|
{
|
||||||
pConsole->m_BacklogCurLine += pConsole->m_NewLineCounter;
|
pConsole->m_BacklogCurLine += pConsole->m_NewLineCounter;
|
||||||
pConsole->m_BacklogLastActiveLine += pConsole->m_NewLineCounter;
|
pConsole->m_BacklogLastActiveLine += pConsole->m_NewLineCounter;
|
||||||
|
|
Loading…
Reference in a new issue