Snap to main menu icons

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 02c64b07a9
commit 865ba72ed0
@@ -26,6 +26,8 @@ SelectFabCarousel::SelectFabCarousel(Window* parent):
{ {
setPageWidth(FAB_BUTTON_SIZE + SELECT_BUTTON_BORDER); setPageWidth(FAB_BUTTON_SIZE + SELECT_BUTTON_BORDER);
setHeight(FAB_BUTTON_SIZE + 2 * PAGE_LINE_HEIGHT + SELECT_BUTTON_BORDER / 2); setHeight(FAB_BUTTON_SIZE + 2 * PAGE_LINE_HEIGHT + SELECT_BUTTON_BORDER / 2);
lv_obj_set_scroll_snap_x(lvobj, LV_SCROLL_SNAP_START);
} }
void SelectFabCarousel::setMaxButtons(uint8_t max) void SelectFabCarousel::setMaxButtons(uint8_t max)