Description
LV_OBJ_FLAG_SCROLL_ONE can work normal if we set snap to LV_SCROLL_SNAP_CENTER. But if when set the snap to LV_SCROLL_SNAP_START. it can not work normally.
What LVGL version are you using?
v8.3 simulator.
Code to reproduce
In the example code lv_example_scroll_2();
The code block(s) should be formatted like:
lv_obj_t * panel = lv_obj_create(lv_scr_act());
lv_obj_set_size(panel, 280, 120);
// lv_obj_set_scroll_snap_x(panel, LV_SCROLL_SNAP_CENTER);
/* change LV_SCROLL_SNAP_CENTER to LV_SCROLL_SNAP_START */
lv_obj_set_scroll_snap_x(panel, LV_SCROLL_SNAP_START);
lv_obj_set_flex_flow(panel, LV_FLEX_FLOW_ROW);
lv_obj_align(panel, LV_ALIGN_CENTER, 0, 20);
after add the flag LV_OBJ_FLAG_SCROLL_ONE, when scrolling the panel, there are still chances to scrolling two or more child at one scroll.
so what can I do to make LV_OBJ_FLAG_SCROLL_ONE work when set LV_SCROLL_SNAP_START as the panel snap mode