Set m_wheelDelta for wheel events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a30c6aadde
commit
6077391138
@ -1434,6 +1434,7 @@ template<typename T> void InitMouseEvent(wxWindowGTK *win,
|
||||
if (event.GetEventType() == wxEVT_MOUSEWHEEL)
|
||||
{
|
||||
event.m_linesPerAction = 3;
|
||||
event.m_wheelDelta = 120;
|
||||
if (((GdkEventButton*)gdk_event)->button == 4)
|
||||
event.m_wheelRotation = 120;
|
||||
else if (((GdkEventButton*)gdk_event)->button == 5)
|
||||
@ -1921,6 +1922,7 @@ static gint gtk_window_wheel_callback (GtkWidget * widget,
|
||||
event.m_middleDown = (gdk_event->state & GDK_BUTTON2_MASK);
|
||||
event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK);
|
||||
event.m_linesPerAction = 3;
|
||||
event.m_wheelDelta = 120;
|
||||
if (gdk_event->direction == GDK_SCROLL_UP)
|
||||
event.m_wheelRotation = 120;
|
||||
else
|
||||
|
@ -1434,6 +1434,7 @@ template<typename T> void InitMouseEvent(wxWindowGTK *win,
|
||||
if (event.GetEventType() == wxEVT_MOUSEWHEEL)
|
||||
{
|
||||
event.m_linesPerAction = 3;
|
||||
event.m_wheelDelta = 120;
|
||||
if (((GdkEventButton*)gdk_event)->button == 4)
|
||||
event.m_wheelRotation = 120;
|
||||
else if (((GdkEventButton*)gdk_event)->button == 5)
|
||||
@ -1921,6 +1922,7 @@ static gint gtk_window_wheel_callback (GtkWidget * widget,
|
||||
event.m_middleDown = (gdk_event->state & GDK_BUTTON2_MASK);
|
||||
event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK);
|
||||
event.m_linesPerAction = 3;
|
||||
event.m_wheelDelta = 120;
|
||||
if (gdk_event->direction == GDK_SCROLL_UP)
|
||||
event.m_wheelRotation = 120;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user