From: Shinwoo Kim Date: Tue, 14 May 2013 04:38:55 +0000 (+0900) Subject: [slider][access] check horizontal, inverted in smart activate X-Git-Tag: accepted/tizen/20130927.071315^2~466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b30505c14b7618907e3ee7b60b02510c0b012811;p=profile%2Fmobile%2Felementary.git [slider][access] check horizontal, inverted in smart activate Change-Id: I3772d2833c5f4526a0daa585ad923f49f513db79 --- diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c index 660948e..a10ce97 100644 --- a/src/lib/elm_slider.c +++ b/src/lib/elm_slider.c @@ -416,14 +416,20 @@ _elm_slider_smart_activate(Evas_Object *obj, Elm_Activate act) if ((act == ELM_ACTIVATE_UP) || (act == ELM_ACTIVATE_RIGHT)) { - if (!sd->inverted) _drag_up(obj, NULL, NULL, NULL); - else _drag_down(obj, NULL, NULL, NULL); + if ((!sd->horizontal && sd->inverted) || + (sd->horizontal && !sd->inverted)) + _drag_up(obj, NULL, NULL, NULL); + else + _drag_down(obj, NULL, NULL, NULL); } else if ((act == ELM_ACTIVATE_DOWN) || (act == ELM_ACTIVATE_LEFT)) { - if (!sd->inverted) _drag_down(obj, NULL, NULL, NULL); - else _drag_up(obj, NULL, NULL, NULL); + if ((!sd->horizontal && sd->inverted) || + (sd->horizontal && !sd->inverted)) + _drag_down(obj, NULL, NULL, NULL); + else + _drag_up(obj, NULL, NULL, NULL); } _slider_update(obj);