How to prevent a lv_tabview content from horizontally scrolling

I found the answer at:
https://forum.lvgl.io/t/how-to-switch-to-next-tab-without-scroll/9210/2

My code has to be changed to
lv_obj_clear_flag(lv_tabview_get_content(tabview), LV_OBJ_FLAG_SCROLLABLE);