mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 07:06:19 +08:00
fix(indev): don't reset all indevs if an object is set disabled (#7216)
This commit is contained in:
@@ -309,11 +309,6 @@ void lv_obj_add_state(lv_obj_t * obj, lv_state_t state)
|
|||||||
|
|
||||||
lv_state_t new_state = obj->state | state;
|
lv_state_t new_state = obj->state | state;
|
||||||
if(obj->state != new_state) {
|
if(obj->state != new_state) {
|
||||||
|
|
||||||
if(new_state & ~obj->state & LV_STATE_DISABLED) {
|
|
||||||
lv_indev_reset(NULL, obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
update_obj_state(obj, new_state);
|
update_obj_state(obj, new_state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user