Undesired color of unfocused objects


I have some textarea objects in my GUI, which are added to a group. whenever one of them is focused, its border should get red.
It works well when I use the encoder. i.e the border of only the focused textarea will get red. but when I touch them, even up to 4 of them might get red.

What MCU/Processor/Board and compiler are you using?

stm32f429, cubeide, gcc

Screenshot and/or video

This is what I expect when I click on the text area -as I see it when I rotate among objects by encoder-:

but this is what I see when I touch them:

Does it work if you revert to before this commit was made?

@embeddedt No, it behaves the same.
Did you checked it? I not, I would appreciate you to check it. just create 4 textarea and add them to a group. and check what you see when you touch them. thanks

I have this problem with rollers too.
Although I added this:
lv_obj_add_protect(roller_time_hour, LV_PROTECT_CLICK_FOCUS);

Its border gets colored when I click on the roller.


I’ve just a fix for this. Does it work well for you now?

1 Like

I will check it and let you know ASAP.

Yeah, It’s OK now. thanks :tada::pray:

1 Like