summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-02 21:11:43 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-02 21:11:43 +0000
commit85533d11be0b32799d1baf343a13a633cb041ea2 (patch)
tree0925f1dd1abc26883357d0be4693f94b0f394226 /src/Fl_x.cxx
parentaf75829757e1dba0ed23aef7ff165cf80c3766b6 (diff)
Fix mouse wheel stuff for browser and helpview widgets (move 3 lines at
a time...) Fl_Group::handle() now sends unknown events to the focus widget first, then to any other child that will take it... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 63441ef4c..f97f8575e 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_x.cxx,v 1.24.2.24.2.1 2001/08/02 20:09:25 easysw Exp $"
+// "$Id: Fl_x.cxx,v 1.24.2.24.2.2 2001/08/02 21:11:43 easysw Exp $"
//
// X specific code for the Fast Light Tool Kit (FLTK).
//
@@ -449,11 +449,11 @@ int fl_handle(const XEvent& xevent)
case ButtonPress:
Fl::e_keysym = FL_Button + xevent.xbutton.button;
set_event_xy();
- if (xevent.xbutton.button == 4) {
- Fl::e_dy = +1;
+ if (xevent.xbutton.button == Button4) {
+ Fl::e_dy = -1; // Up
event = FL_MOUSEWHEEL;
- } else if (xevent.xbutton.button == 5) {
- Fl::e_dy = -1;
+ } else if (xevent.xbutton.button == Button5) {
+ Fl::e_dy = +1; // Down
event = FL_MOUSEWHEEL;
} else {
Fl::e_state |= (FL_BUTTON1 << (xevent.xbutton.button-1));
@@ -927,5 +927,5 @@ void Fl_Window::make_current() {
#endif
//
-// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.1 2001/08/02 20:09:25 easysw Exp $".
+// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.2 2001/08/02 21:11:43 easysw Exp $".
//