mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
scalebutton: Invert smooth scroll dy when adding to the current value
On regular scrolling (ie. not natural scrolling), positive deltas in the Y axis (downwards) should actually move the value towards the adjustment minimum value to be more intuitive. This also makes the scrolling directions match between the button and the popped up scale. https://bugzilla.gnome.org/show_bug.cgi?id=736830
This commit is contained in:
parent
bc879ab2dd
commit
f8f74b59e3
@ -794,7 +794,7 @@ gtk_scale_button_scroll (GtkWidget *widget,
|
||||
}
|
||||
else if (event->direction == GDK_SCROLL_SMOOTH)
|
||||
{
|
||||
d += event->delta_y * gtk_adjustment_get_step_increment (adjustment);
|
||||
d -= event->delta_y * gtk_adjustment_get_step_increment (adjustment);
|
||||
d = CLAMP (d, gtk_adjustment_get_lower (adjustment),
|
||||
gtk_adjustment_get_upper (adjustment));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user