Ticket #33596: patch-wxt-scroll.diff
File patch-wxt-scroll.diff, 767 bytes (added by mojca (Mojca Miklavec), 13 years ago) |
---|
-
src/wxterminal/wxt_gui.cpp
old new void wxtPanel::OnRightUp( wxMouseEvent& event ) 1003 1003 /* mouse wheel event */ 1004 1004 void wxtPanel::OnMouseWheel( wxMouseEvent& event ) 1005 1005 { 1006 UpdateModifiers(event);1006 int mouse_button; 1007 1007 1008 wxt_exec_event(GE_buttonpress, 0, 0, 1009 event.GetWheelRotation() > 0 ? 4 : 5, 1010 0, this->GetId()); 1008 UpdateModifiers(event); 1009 mouse_button = (event.GetWheelRotation() > 0 ? 4 : 5); 1010 #if wxCHECK_VERSION(2, 9, 0) 1011 /* GetWheelAxis: 0 is the Y axis, 1 is the X axis. */ 1012 if (event.GetWheelAxis() > 0) 1013 mouse_button += 2; 1014 #endif 1015 wxt_exec_event(GE_buttonpress, 0, 0, mouse_button, 0, this->GetId()); 1011 1016 } 1012 1017 1013 1018 /* the state of the modifiers is checked each time a key is pressed instead of