Roller with animation


I have a small roller that I want to set according to my selection.
This works fine with the command

lv_roller_set_selected(ui_varRoller, value, LV_ANIM_OFF);

since there seems to be an option to have an animation I tried this as well. But in this case the roller isn’t responding anymore.

lv_roller_set_selected(ui_varRoller, value, LV_ANIM_ON);

After reading the lvgl documentation my guess would have been, that I have to set a time for the animation. But if it would be 0 by default, why would the roller not work anymore? Anyhow I tried the lvgl command

lv_roller_set_anim_time(ui_varRoller, 500);

but this is not declared at it seems. I’ve searched the whole libarary but can’t find this expression at all.
So any idea what I’m doing wrong?

BR Chris


I don’t know why the roller is not responding. Could you send a code snippet to reproduce the issue?

Anyway, the animation time is a style property and you can set it with lv_obj_set_style_anim_time(roller, 500, 0);

Well I have tried multiple things but non are working.

I have stripped down my display project to the bare minium. Only background and roller remain.
I have added more selections in case 3 was not enough for a animation to happen.
I have tried to set the animation style. Nothing works.

Since I can not upload files yet I have provided a link where you can download the code

As board I’m using a Lilygo T-Display S3 wit an ESP32S3 controller.


This line makes the roller not CLICKABLE probably you added this flag by accident.