|
|
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Pending]
Link: https://www.fltk.org/str.php?L3521
Version: 1.4-feature
That slightly modified code could avoid to invert the scroll /direction/
of real horizontal mousewheel events:
// FALLTHROUGH
case WM_MOUSEHWHEEL: {
static int delta = 0; // running total of all motion
int wparam = (SHORT)(HIWORD(wParam));
if ( (LOWORD(wParam) & MK_SHIFT) && uMsg == WM_MOUSEWHEEL)
wparam = -wparam;
delta += wparam;
Fl::e_dy = 0;
Fl::e_dx = delta / WHEEL_DELTA;
delta -= Fl::e_dx * WHEEL_DELTA;
if (Fl::e_dx)
Fl::handle(FL_MOUSEWHEEL, window);
return 0;
}
Untested though.
Link: https://www.fltk.org/str.php?L3521
Version: 1.4-feature
[ Direct Link to Message ] | |
|
| |