[Documentation] Fix README typo, bump version number to 0.14

This commit is contained in:
Nic Barker 2025-06-06 10:20:37 +10:00
parent 58491394ca
commit 8bbe14fbcc
2 changed files with 3 additions and 3 deletions

View file

@ -360,11 +360,11 @@ Clay_UpdateScrollContainers(
);
// ...
// Clay internally tracks the scroll containers offset, and Clay_GetScrollOffset returns the x,y offset of the currently open element
CLAY({ .clip = vertical, .childOffset = Clay_GetScrollOffset() }) {
CLAY({ .clip = { .vertical = true, .childOffset = Clay_GetScrollOffset() } }) {
// Scrolling contents
}
// .childOffset can be provided directly if you would prefer to manage scrolling outside of clay
CLAY({ .clip = vertical, .childOffset = myData.scrollContainer.offset }) {
CLAY({ .clip = { .vertical = true, .childOffset = myData.scrollContainer.offset } }) {
// Scrolling contents
}
```

2
clay.h
View file

@ -1,4 +1,4 @@
// VERSION: 0.13
// VERSION: 0.14
/*
NOTE: In order to use this library you must define