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 <cedric@osg.samsung.com>
This commit is contained in:
Sungtaek Hong 2017-02-07 13:29:57 -08:00 committed by Cedric BAIL
parent 1f1d52503e
commit 8ac66d9dc0
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{