mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
GtkRange: make autoscrolling work for inverted ranges
This problem was discovered in https://bugzilla.gnome.org/show_bug.cgi?id=725225
This commit is contained in:
parent
f0e6eb3ce0
commit
07fc894020
@ -3054,9 +3054,9 @@ update_autoscroll_mode (GtkRange *range)
|
||||
}
|
||||
|
||||
if (pos < SCROLL_EDGE_SIZE)
|
||||
mode = GTK_SCROLL_STEP_BACKWARD;
|
||||
mode = range->priv->inverted ? GTK_SCROLL_STEP_FORWARD : GTK_SCROLL_STEP_BACKWARD;
|
||||
else if (pos > (size - SCROLL_EDGE_SIZE))
|
||||
mode = GTK_SCROLL_STEP_FORWARD;
|
||||
mode = range->priv->inverted ? GTK_SCROLL_STEP_BACKWARD : GTK_SCROLL_STEP_FORWARD;
|
||||
}
|
||||
|
||||
if (mode != range->priv->autoscroll_mode)
|
||||
|
Loading…
Reference in New Issue
Block a user