if (gdk_event->delta_y)
{
event.m_wheelAxis = wxMOUSE_WHEEL_VERTICAL;
- event.m_wheelRotation = int(event.m_wheelDelta * gdk_event->delta_y);
+ event.m_wheelRotation = int(event.m_wheelDelta * -gdk_event->delta_y);
GtkRange* range = win->m_scrollBar[wxWindow::ScrollDir_Vert];
event.m_linesPerAction = GetWheelScrollActionDelta(range);
event.m_columnsPerAction = event.m_linesPerAction;
}
event.m_wheelRotation = event.m_wheelDelta;
- if (gdk_event->direction == GDK_SCROLL_UP ||
+ if (gdk_event->direction == GDK_SCROLL_DOWN ||
gdk_event->direction == GDK_SCROLL_LEFT)
{
event.m_wheelRotation = -event.m_wheelRotation;