mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 20:46:17 +00:00
Fix initializers
This commit is contained in:
parent
9345c2ed48
commit
004ed63372
4
clay.h
4
clay.h
|
@ -2563,7 +2563,7 @@ void Clay__CalculateFinalLayout() {
|
||||||
scrollOffset.y = mapping->scrollPosition.y;
|
scrollOffset.y = mapping->scrollPosition.y;
|
||||||
}
|
}
|
||||||
if (Clay__externalScrollHandlingEnabled) {
|
if (Clay__externalScrollHandlingEnabled) {
|
||||||
scrollOffset = (Clay_Vector2) {};
|
scrollOffset = CLAY__INIT(Clay_Vector2) {};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2727,7 +2727,7 @@ void Clay__CalculateFinalLayout() {
|
||||||
if (scrollConfig->horizontal) { scrollOffset.x = mapping->scrollPosition.x; }
|
if (scrollConfig->horizontal) { scrollOffset.x = mapping->scrollPosition.x; }
|
||||||
if (scrollConfig->vertical) { scrollOffset.y = mapping->scrollPosition.y; }
|
if (scrollConfig->vertical) { scrollOffset.y = mapping->scrollPosition.y; }
|
||||||
if (Clay__externalScrollHandlingEnabled) {
|
if (Clay__externalScrollHandlingEnabled) {
|
||||||
scrollOffset = (Clay_Vector2) {};
|
scrollOffset = CLAY__INIT(Clay_Vector2) {};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue