Switch .scroll usage to .clip

This commit is contained in:
Nic Barker 2025-05-01 13:41:42 +12:00
parent f9ebeced60
commit fd281f4f86
4 changed files with 59 additions and 34 deletions

View file

@ -235,7 +235,7 @@ Clay_RenderCommandArray ClayVideoDemo_CreateLayout(ClayVideoDemo_Data *data) {
CLAY({ .id = CLAY_ID("MainContent"),
.backgroundColor = contentBackgroundColor,
.scroll = { .vertical = true },
.clip = { .vertical = true, .childOffset = Clay_GetScrollOffset() },
.layout = {
.layoutDirection = CLAY_TOP_TO_BOTTOM,
.childGap = 16,