Merge pull request #1553 from shygoo2/cpu-log-tool1

[Debugger] CPU Log: fix mousewheel scrolling
This commit is contained in:
zilmar 2019-01-15 16:44:26 +10:30 committed by GitHub
commit 8411f06168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
}