mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Don't send FL_RELEASE events for buttons 4 and 5 (mouse wheel)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_x.cxx,v 1.24.2.24.2.4 2001/10/27 03:45:29 easysw Exp $"
|
// "$Id: Fl_x.cxx,v 1.24.2.24.2.5 2001/11/19 18:28:55 easysw Exp $"
|
||||||
//
|
//
|
||||||
// X specific code for the Fast Light Tool Kit (FLTK).
|
// X specific code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -476,6 +476,8 @@ int fl_handle(const XEvent& xevent)
|
|||||||
Fl::e_keysym = FL_Button + xevent.xbutton.button;
|
Fl::e_keysym = FL_Button + xevent.xbutton.button;
|
||||||
set_event_xy();
|
set_event_xy();
|
||||||
Fl::e_state &= ~(FL_BUTTON1 << (xevent.xbutton.button-1));
|
Fl::e_state &= ~(FL_BUTTON1 << (xevent.xbutton.button-1));
|
||||||
|
if (xevent.xbutton.button == Button4 ||
|
||||||
|
xevent.xbutton.button == Button5) return 0;
|
||||||
event = FL_RELEASE;
|
event = FL_RELEASE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -934,5 +936,5 @@ void Fl_Window::make_current() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.4 2001/10/27 03:45:29 easysw Exp $".
|
// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.5 2001/11/19 18:28:55 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user