fix(style): remove transitions when a local style property is set (#6941)
This commit is contained in:
@@ -353,6 +353,9 @@ bool lv_obj_has_style_prop(const lv_obj_t * obj, lv_style_selector_t selector, l
|
|||||||
void lv_obj_set_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t value,
|
void lv_obj_set_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t value,
|
||||||
lv_style_selector_t selector)
|
lv_style_selector_t selector)
|
||||||
{
|
{
|
||||||
|
/*Stop running transitions wit this property */
|
||||||
|
trans_delete(obj, lv_obj_style_get_selector_part(selector), prop, NULL);
|
||||||
|
|
||||||
lv_style_t * style = get_local_style(obj, selector);
|
lv_style_t * style = get_local_style(obj, selector);
|
||||||
if(selector == LV_PART_MAIN && lv_style_prop_has_flag(prop, LV_STYLE_PROP_FLAG_TRANSFORM)) {
|
if(selector == LV_PART_MAIN && lv_style_prop_has_flag(prop, LV_STYLE_PROP_FLAG_TRANSFORM)) {
|
||||||
lv_obj_invalidate(obj);
|
lv_obj_invalidate(obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user