Commit 0e338d31 authored by Daniel Boles's avatar Daniel Boles

Range: Fix inverted vert scrolling on vert Ranges…

The change in the previous patch should only be applied when the Range
is oriented horizontally.

https://bugzilla.gnome.org/show_bug.cgi?id=737175
parent 4d18a346
......@@ -3059,8 +3059,9 @@ _gtk_range_get_wheel_delta (GtkRange *range,
}
else if (gdk_event_get_scroll_direction ((GdkEvent *) event, &direction))
{
if (direction == GDK_SCROLL_DOWN ||
direction == GDK_SCROLL_LEFT)
if (direction == GDK_SCROLL_LEFT ||
(priv->orientation == GTK_ORIENTATION_VERTICAL && direction == GDK_SCROLL_UP) ||
(priv->orientation == GTK_ORIENTATION_HORIZONTAL && direction == GDK_SCROLL_DOWN))
delta = - scroll_unit;
else
delta = scroll_unit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment