fix(indev): fix implementation of LV_PROTECT_EVENT_TO_DISABLED
This commit is contained in:
@@ -1148,7 +1148,7 @@ lv_obj_t * lv_indev_search_obj(lv_obj_t * obj, lv_point_t * point)
|
|||||||
hidden_i = lv_obj_get_parent(hidden_i);
|
hidden_i = lv_obj_get_parent(hidden_i);
|
||||||
}
|
}
|
||||||
/*No parent found with hidden == true*/
|
/*No parent found with hidden == true*/
|
||||||
if(lv_obj_is_protected(indev_obj_act, LV_PROTECT_EVENT_TO_DISABLED) == false){
|
if(lv_obj_is_protected(obj, LV_PROTECT_EVENT_TO_DISABLED) == false){
|
||||||
if(hidden_i == NULL && (lv_obj_get_state(obj, LV_OBJ_PART_MAIN) & LV_STATE_DISABLED) == false) found_p = obj;
|
if(hidden_i == NULL && (lv_obj_get_state(obj, LV_OBJ_PART_MAIN) & LV_STATE_DISABLED) == false) found_p = obj;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user