1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Initialize adv_hittest for non-screen objects

This commit is contained in:
Themba Dube 2020-01-09 20:26:46 -05:00
parent 8f9fb4578c
commit 00ba66534d

View File

@ -319,6 +319,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, const lv_obj_t * copy)
#endif #endif
/*Set attributes*/ /*Set attributes*/
new_obj->adv_hittest = 0;
new_obj->click = 1; new_obj->click = 1;
new_obj->drag = 0; new_obj->drag = 0;
new_obj->drag_dir = LV_DRAG_DIR_BOTH; new_obj->drag_dir = LV_DRAG_DIR_BOTH;