Skip to content

Commit 1b8dbcc

Browse files
committed
intuitive histogram control
1 parent 1194d6d commit 1b8dbcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/iop/exposure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static void _exposure_proxy_handle_event(int n_press,
840840
? g->deflicker_target_level : g->exposure);
841841
const float val = dt_bauhaus_slider_get(widget);
842842
const float accel = dt_accel_get_speed_multiplier(widget, state);
843-
if(is_blackpoint)
843+
if(!is_blackpoint)
844844
delta = -delta;
845845

846846
if(n_press == 2)
@@ -854,7 +854,7 @@ static void _exposure_proxy_handle_event(int n_press,
854854
{ // drag
855855
const float s_min = dt_bauhaus_slider_get_soft_min(widget);
856856
const float s_max = dt_bauhaus_slider_get_soft_max(widget);
857-
dt_bauhaus_slider_set(widget, val + delta * (s_max - s_min) * accel);
857+
dt_bauhaus_slider_set(widget, val - delta * (s_max - s_min) * accel);
858858
}
859859

860860
gchar *text = dt_bauhaus_slider_get_text(widget, dt_bauhaus_slider_get(widget));

0 commit comments

Comments
 (0)