fix(display): fix screen loading with zero time
This commit is contained in:
@@ -513,7 +513,7 @@ void lv_scr_load_anim(lv_obj_t * new_scr, lv_scr_load_anim_t anim_type, uint32_t
|
||||
|
||||
/*If another screen load animation is in progress
|
||||
*make target screen loaded immediately. */
|
||||
if(d->scr_to_load) {
|
||||
if(d->scr_to_load && act_scr != d->scr_to_load) {
|
||||
scr_load_internal(d->scr_to_load);
|
||||
lv_anim_del(d->scr_to_load, NULL);
|
||||
lv_obj_set_pos(d->scr_to_load, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user