Skip to content

Commit

Permalink
修正选项设置对话框中使用触摸板手势滚动过快的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed Jan 8, 2025
1 parent 7e30d8f commit 019cbb6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions TrafficMonitor/TabDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,8 @@ BOOL CTabDlg::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
// TODO: 在此添加消息处理程序代码和/或调用默认值
if (m_scroll_enable)
{
int step = theApp.DPI(64);
if (zDelta > 0)
{
ScrollWindowSimple(step);
}
if (zDelta < 0)
{
ScrollWindowSimple(-step);
}
int step = theApp.DPI(64) * zDelta / 120;
ScrollWindowSimple(step);
SCROLLINFO scrollinfo;
GetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
m_last_pos = scrollinfo.nPos;
Expand Down

0 comments on commit 019cbb6

Please sign in to comment.