mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
range: simplify calculation
This commit is contained in:
parent
8242182404
commit
27a6183b98
@ -2753,7 +2753,7 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
|
||||
x - slider_alloc.width);
|
||||
|
||||
/* compute new value for warped slider */
|
||||
new_value = slider_low_value + (slider_high_value - slider_low_value) / 2;
|
||||
new_value = (slider_low_value + slider_high_value) / 2;
|
||||
|
||||
gtk_range_compute_slider_position (range, new_value, &slider);
|
||||
update_initial_slider_position (range, x, y, &slider);
|
||||
|
Loading…
Reference in New Issue
Block a user