-
- if (fabs(diff-line_step) < 0.2) command = wxEVT_SCROLL_LINEDOWN;
- else if (fabs(diff+line_step) < 0.2) command = wxEVT_SCROLL_LINEUP;
- else if (fabs(diff-page_step) < 0.2) command = wxEVT_SCROLL_PAGEDOWN;
- else if (fabs(diff+page_step) < 0.2) command = wxEVT_SCROLL_PAGEUP;
+
+ if (fabs(diff-line_step) < sensitivity) command = wxEVT_SCROLL_LINEDOWN;
+ else if (fabs(diff+line_step) < sensitivity) command = wxEVT_SCROLL_LINEUP;
+ else if (fabs(diff-page_step) < sensitivity) command = wxEVT_SCROLL_PAGEDOWN;
+ else if (fabs(diff+page_step) < sensitivity) command = wxEVT_SCROLL_PAGEUP;