mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 01:33:59 +08:00
fix(indev): don't reset all indevs if an object is set disabled (#7216)
This commit is contained in:
parent
31226b9b95
commit
abdcc04f09
@ -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;
|
||||
if(obj->state != new_state) {
|
||||
|
||||
if(new_state & ~obj->state & LV_STATE_DISABLED) {
|
||||
lv_indev_reset(NULL, obj);
|
||||
}
|
||||
|
||||
update_obj_state(obj, new_state);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user