cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8ac66d9dc09e911fe3dfe0eafca2121fb2c74a15

commit 8ac66d9dc09e911fe3dfe0eafca2121fb2c74a15
Author: Sungtaek Hong <sth253.h...@samsung.com>
Date:   Tue Feb 7 13:29:57 2017 -0800

    elm_index: skip level check when only 0 level is active
    
    Summary:
     - In mouse move callback, index tries to calculate
       current level.
     - This is not needed when level 1 is not active.
       and blocks index item change.
    
    Test Plan:
     1) Run elementary test -> any vertical index.
     2) Click on index item and drag to outside of index.
     3) Observe index item is now changed as mouse movement.
    
    Reviewers: cedric, Hermet, jpeg, eunue
    
    Reviewed By: cedric
    
    Subscribers: conr2d
    
    Differential Revision: https://phab.enlightenment.org/D4643
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elementary/elm_index.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_index.c b/src/lib/elementary/elm_index.c
index a407ba8..c1b0e05 100644
--- a/src/lib/elementary/elm_index.c
+++ b/src/lib/elementary/elm_index.c
@@ -909,7 +909,7 @@ _on_mouse_move(void *data,
      (wd->resize_obj, "elm.dragable.pointer",
      (!edje_object_mirrored_get(wd->resize_obj)) ?
      x : (x - w), y);
-   if (sd->orientation == EFL_ORIENT_VERTICAL)
+   if ((sd->orientation == EFL_ORIENT_VERTICAL) && (sd->event_rect[1]))
      {
         if (adx > minw)
           {

-- 


Reply via email to