fix(indev): fix hovering disabled obj resets indev (#6855)
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
475b538276
commit
2be97d6b92
@@ -306,7 +306,7 @@ 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 & LV_STATE_DISABLED) {
|
if(new_state & ~obj->state & LV_STATE_DISABLED) {
|
||||||
lv_indev_reset(NULL, obj);
|
lv_indev_reset(NULL, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user