gengrid: fix highlight bug in disabled item

Summary:
if item is disabled, item must be not highlighted by touch events.

Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
This commit is contained in:
SangHyeon Lee 2017-01-10 13:59:42 +09:00
parent 277865c410
commit 30445b6ea6
1 changed files with 1 additions and 0 deletions

View File

@ -886,6 +886,7 @@ _item_highlight(Elm_Gen_Item *it)
ELM_GENGRID_DATA_GET_FROM_ITEM(it, sd);
if (_is_no_select(it) ||
(elm_wdg_item_disabled_get(EO_OBJ(it))) ||
(!sd->highlight) || (it->highlighted) ||
(it->generation < sd->generation))
return;