How to disable Page (lv_page) Horizontal Scroll


how to disable Page (lv_page) Horizontal Scroll.

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


What do you want to achieve?

lv page vertical scroll same like List (lv_list) scroll with no Horizontal movement .

What have you tried so far?

1)List (lv_list) but cannot add imgbtn

Code to reproduce

lv_obj_t * page = lv_page_create(lv_scr_act(), NULL);

lv_page_set_sb_mode(page, LV_SB_MODE_OFF);/* scroll bar off /
lv_page_set_sb_mode(page, LV_SB_MODE_ON);
lv_page_set_edge_flash(page,true); /
A circle-like effect */
//lv_page_scroll_hor(page, NULL); // Don’t work

Thank You

I think the simplest solution is to ensure that none of the children are wider than the size of the page.