+ double delta_x = gdk_event->delta_x;
+ double delta_y = gdk_event->delta_y;
+ if (delta_x == 0)
+ {
+ if (is_range_h)
+ {
+ delta_x = delta_y;
+ delta_y = 0;
+ }
+ }
+ else if (delta_y == 0)
+ {
+ if (is_range_v)
+ {
+ delta_y = delta_x;
+ delta_x = 0;
+ }
+ }
+ if (delta_x)
+ {
+ event.m_wheelAxis = wxMOUSE_WHEEL_HORIZONTAL;
+ event.m_wheelRotation = int(event.m_wheelDelta * delta_x);
+ if (!win->GTKProcessEvent(event))
+ AdjustRangeValue(range_h, event.m_columnsPerAction * delta_x);
+ }
+ if (delta_y)
+ {
+ event.m_wheelAxis = wxMOUSE_WHEEL_VERTICAL;
+ event.m_wheelRotation = int(event.m_wheelDelta * -delta_y);
+ if (!win->GTKProcessEvent(event))
+ AdjustRangeValue(range_v, event.m_linesPerAction * delta_y);
+ }
+ return true;
+#endif // GTK_CHECK_VERSION(3,4,0)