scroller, slider: fixed wrong changed I made by 6a683df1598a4c3293a33765cc60dd

I caused by c&p bug.
Special thanks to stefan and coverity.
This fixes coverity CID 1128353 and 1128354.
This commit is contained in:
Daniel Juyung Seo 2013-11-15 22:51:10 +09:00
parent 754cda11a5
commit a480745321
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ _elm_scroller_smart_activate(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
Evas_Coord page_y = 0;
if (elm_widget_disabled_get(obj)) return;
if (act != ELM_ACTIVATE_DEFAULT) return;
if (act == ELM_ACTIVATE_DEFAULT) return;
eo_do(obj,
elm_scrollable_interface_content_pos_get(&x, &y),

View File

@ -458,7 +458,7 @@ _elm_slider_smart_activate(Eo *obj, void *_pd, va_list *list)
Elm_Slider_Smart_Data *sd = _pd;
if (elm_widget_disabled_get(obj)) return;
if (act != ELM_ACTIVATE_DEFAULT) return;
if (act == ELM_ACTIVATE_DEFAULT) return;
if ((act == ELM_ACTIVATE_UP) ||
(act == ELM_ACTIVATE_RIGHT))