How to make a list un-dragable but clickable

I’m looking to make a list object non draggable. Navigation will be undertaken only with lv_list_down and lv_list_up and the user will select an item by clicking the list Button.

Possible?

I’ve tried:

lv_list_set_sb_mode(ResultsList, LV_SB_MODE_OFF);
and
lv_obj_set_drag_dir(ResultsList, 0);
Without any success

Thanks in advance for your patience.
-C

I think you’re using the wrong function. Have you tried lv_obj_set_drag?

1 Like

You can do it like this:

    lv_obj_set_drag(lv_page_get_scrl(list), false);
2 Likes