range: simplify calculation

This commit is contained in:
Cosimo Cecchi 2016-03-05 19:08:14 -08:00
parent 8242182404
commit 27a6183b98

View File

@ -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);