[Debugger] CPU Log: fix mousewheel scrolling

This commit is contained in:
shygoo 2019-01-14 23:19:28 -06:00
parent 12b97b83d8
commit 42613f96e1
1 changed files with 2 additions and 3 deletions

View File

@ -218,10 +218,9 @@ void CDebugCPULogView::InterceptMouseWheel(WPARAM wParam, LPARAM lParam)
if (MouseHovering(IDC_CPU_LIST) || MouseHovering(IDC_SCRL_BAR))
{
// scroll results list
int scrollPos = m_Scrollbar.GetScrollPos();
int m_ListStartIndex = scrollPos + nScroll;
m_Scrollbar.SetScrollPos(m_ListStartIndex);
m_LogStartIndex = scrollPos + nScroll;
m_Scrollbar.SetScrollPos(m_LogStartIndex);
RefreshList(false);
}
}