FIX:fixed scrolling too slow of parameter search scroll bar

Change-Id: I9999df7329545ef8ca8337c16db1d1ec722c728d
This commit is contained in:
tao wang 2022-07-28 10:57:55 +08:00 committed by Lane.Wei
parent e7f379f4de
commit 8c39e3f6f5
2 changed files with 7 additions and 3 deletions

View File

@ -270,10 +270,13 @@ void MyScrollbar::OnMouseWheel(wxMouseEvent &event)
{
int dMotion, actualDim;
if (event.GetWheelRotation() > 0)
dMotion = -m_pixelsPerUnit;
//dMotion = -m_pixelsPerUnit;
dMotion = -SCROLL_D_MOTION;
else
dMotion = m_pixelsPerUnit;
m_previousMouse += dMotion;
// dMotion = m_pixelsPerUnit;
dMotion = SCROLL_D_MOTION;
//m_previousMouse += dMotion;
actualDim = m_actualDim;
if (m_direction == wxVSCROLL)

View File

@ -9,6 +9,7 @@
#endif
enum {BEFORE_SCROLLBAR, ON_SCROLLBAR, AFTER_SCROLLBAR, NOWHERE};
#define SCROLL_D_MOTION 4
class ScrolledWindow;