[slider][access] bug fix: smart_activate(); works in the opposite way.
authorShinwoo Kim <kimcinoo.efl@gmail.com>
Thu, 6 Dec 2012 08:48:50 +0000 (08:48 +0000)
committerShinwoo Kim <kimcinoo.efl@gmail.com>
Thu, 6 Dec 2012 08:48:50 +0000 (08:48 +0000)
SVN revision: 80318

src/lib/elm_slider.c

index 3fa189a..fa63ad2 100644 (file)
@@ -399,13 +399,13 @@ _elm_slider_smart_activate(Eo *obj, void *_pd, va_list *list)
    if ((act == ELM_ACTIVATE_UP) ||
        (act == ELM_ACTIVATE_RIGHT))
      {
-        if (sd->inverted) _drag_up(obj, NULL, NULL, NULL);
+        if (!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);
+        if (!sd->inverted) _drag_down(obj, NULL, NULL, NULL);
         else _drag_up(obj, NULL, NULL, NULL);
      }