We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v9.1.0
As described in this post scroll animation speed of a tileview is fixed by "define" constant in lv_obj_scroll.c
#define SCROLL_ANIM_TIME_MIN 200 /*ms*/ #define SCROLL_ANIM_TIME_MAX 400 /*ms*/
There are any "possibility" to add a public method or similar in order to change the scroll animation time?
Thank you!
No response
The text was updated successfully, but these errors were encountered:
Hi,
You can do this to modify the scroll animation:
void anim_start_event_cb(lv_event_t * e) { lv_anim_t * a = lv_event_get_param(e); if(a) a->duration = 2000; } ... lv_obj_t * tv = lv_tileview_create(lv_screen_active()); lv_obj_add_event_cb(tv, anim_start_event_cb, LV_EVENT_SCROLL_BEGIN, NULL);
Sorry, something went wrong.
Hi, You can do this to modify the scroll animation: void anim_start_event_cb(lv_event_t * e) { lv_anim_t * a = lv_event_get_param(e); if(a) a->duration = 2000; } ... lv_obj_t * tv = lv_tileview_create(lv_screen_active()); lv_obj_add_event_cb(tv, anim_start_event_cb, LV_EVENT_SCROLL_BEGIN, NULL);
Hi!
You are welcome!
I'm closing this issue.
No branches or pull requests
LVGL version
v9.1.0
What happened?
As described in this post scroll animation speed of a tileview is fixed by "define" constant in lv_obj_scroll.c
There are any "possibility" to add a public method or similar in order to change the scroll animation time?
Thank you!
How to reproduce?
No response
The text was updated successfully, but these errors were encountered: