Description
i create a list and add btn to list,when i select list item by keypad,it scroll a little slow.
would you suggest me to improve it?
please check video for detail.
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
v8.0.2
What do you want to achieve?
i want to improve scoll.
What have you tried so far?
Code to reproduce
The code block(s) should be formatted like:
static char * test_msg[]=
{
"Item 0",
"Item 1",
"Item 2",
"Item 3",
"Item 4",
"Item 5",
"Item 6"
};
static void event_handler(lv_event_t* e)
{
lv_event_code_t code = lv_event_get_code(e);
lv_obj_t* obj = lv_event_get_target(e);
lv_indev_t * indev = lv_indev_get_act();
lv_indev_type_t indev_type = lv_indev_get_type(indev);
if(indev_type==LV_INDEV_TYPE_KEYPAD && code==LV_EVENT_KEY)
{
uint32_t key=lv_indev_get_key(indev);
switch(key)
{
case LV_KEY_UP:
lv_group_focus_prev(s_group_keypad_indev);
break;
case LV_KEY_DOWN:
lv_group_focus_next(s_group_keypad_indev);
break;
default:
break;
}
}
}