Don't let sliders mess with parent scrollers.
authorGustavo Lima Chaves <glima@profusion.mobi>
Mon, 6 Dec 2010 12:45:56 +0000 (12:45 +0000)
committerGustavo Lima Chaves <glima@profusion.mobi>
Mon, 6 Dec 2010 12:45:56 +0000 (12:45 +0000)
Actually all dragable thingies in Elementary should get that safety trick.

SVN revision: 55326

src/lib/elm_slider.c

index 652a914..bd5350a 100644 (file)
@@ -373,6 +373,7 @@ _drag_start(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUS
    evas_object_smart_callback_call(data, SIG_DRAG_START, NULL);
    _units_set(data);
    _indicator_set(data);
+   elm_widget_scroll_hold_push(data);
 }
 
 static void
@@ -382,6 +383,7 @@ _drag_stop(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSE
    evas_object_smart_callback_call(data, SIG_DRAG_STOP, NULL);
    _units_set(data);
    _indicator_set(data);
+   elm_widget_scroll_hold_pop(data);
 }
 
 static void