Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

glw: Fix slider regression when doing incremental updates

  • Loading branch information...
commit c12c0a1d98cfd362cb9cf3fdc9f7559523ccd845 1 parent da12641
@andoma authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/ui/glw/glw_slider.c
View
3  src/ui/glw/glw_slider.c
@@ -61,8 +61,7 @@ update_value_delta(glw_slider_t *s, float d)
if(s->p != NULL)
prop_add_float(s->p, d * (s->max - s->min));
else {
- s->value += d;
-
+ s->value = GLW_MAX(s->min, GLW_MIN(s->max, s->value + d));
if(s->bound_widget != NULL) {
glw_scroll_t gs;
gs.value = s->value;
Please sign in to comment.
Something went wrong with that request. Please try again.