Commit 27a6183b authored by Cosimo Cecchi's avatar Cosimo Cecchi

range: simplify calculation

parent 82421824
......@@ -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);
......
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