mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-27 20:57:01 +08:00
fix(style): remove transitions when a local style property is set (#6941)
This commit is contained in:
committed by
GitHub
parent
0daebca18b
commit
2acd6ff7e3
@@ -358,6 +358,10 @@ void lv_obj_set_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_
|
|||||||
lv_style_selector_t selector)
|
lv_style_selector_t selector)
|
||||||
{
|
{
|
||||||
LV_PROFILER_STYLE_BEGIN;
|
LV_PROFILER_STYLE_BEGIN;
|
||||||
|
|
||||||
|
/*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