Re: Horizontal scrolling with mouse buttons
"corvid" <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <20120807153207.GA29372@local> |
Dennis wrote: > On Tue, 16 Aug 2011 12:03:39 -0400, Jorge Arellano Cid wrote: > > On Mon, Aug 15, 2011 at 02:18:33PM -0400, > > saulgoode-BqP3EBOJqr3AtXP3tlA9K6uWErL5Y8zJmpATvIKMPHk@public.gmane.org > > wrote: > > > Quoting Jorge Arellano Cid > > > <[email protected]>: > > > > > > > Please try dillo-3.0-pre, following these directions [1]. > > > >Then report back how it goes. > > > > > > > > [1] http://www.dillo.org/source.html > > > > > > With that build, the horizontal scroll buttons are inactive. To my > > > mind this is satisfactory behavior as it does not interfere with the > > > vertical scrolling of the mouse wheel (previously the only way to > > > restore vertical wheel scrolling was to restart the program). > > > > Good! > > > > This looks like an issue with fltk-1.3. > > > > FWIW, inside fltk-1.3 src/Fl_x.cxx:1443, there's no code to > > handle those buttons. Having something like the following may be > > worth a try (if you're a coder): > > > > if (xevent.xbutton.button == Button4) { > > Fl::e_dy = -1; // Up > > event = FL_MOUSEWHEEL; > > } else if (xevent.xbutton.button == Button5) { > > Fl::e_dy = +1; // Down > > event = FL_MOUSEWHEEL; > > + } else if (xevent.xbutton.button == Button6) { > > + Fl::e_dx = -1; // Left > > + event = FL_MOUSEWHEEL; > > + } else if (xevent.xbutton.button == Button7) { > > + Fl::e_dx = +1; // Right > > + event = FL_MOUSEWHEEL; > > } else { > > Fl::e_state |= (FL_BUTTON1 << (xevent.xbutton.button-1)); > > event = FL_PUSH; > > checkdouble(); > > } > > That doesn't work (for me). Button6/7 aren't defined, or something. > Does anybody have horizontal scrolling working? I saw that there was a commit in June: http://fltk.org/newsgroups.php?s6952+gfltk.commit+v6955+T0 It uses 6/7 instead of Button6/Button7.