mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 15:20:48 +08:00
FIX:fixed scrolling too slow of parameter search scroll bar
Change-Id: I9999df7329545ef8ca8337c16db1d1ec722c728d
This commit is contained in:
parent
e7f379f4de
commit
8c39e3f6f5
@ -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)
|
||||
|
@ -9,6 +9,7 @@
|
||||
#endif
|
||||
|
||||
enum {BEFORE_SCROLLBAR, ON_SCROLLBAR, AFTER_SCROLLBAR, NOWHERE};
|
||||
#define SCROLL_D_MOTION 4
|
||||
|
||||
class ScrolledWindow;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user