[Core] Remove erroneous break statement when using external scroll handling

This commit is contained in:
Nic Barker 2025-06-13 10:35:31 +10:00
parent adb1bd620a
commit 6f10bf4b3d
3 changed files with 0 additions and 2 deletions

1
clay.h
View file

@ -2695,7 +2695,6 @@ void Clay__CalculateFinalLayout(void) {
if (clipConfig->vertical) { if (clipConfig->vertical) {
rootPosition.y += clipConfig->childOffset.y; rootPosition.y += clipConfig->childOffset.y;
} }
break;
} }
Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) { Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand) {
.boundingBox = clipHashMapItem->boundingBox, .boundingBox = clipHashMapItem->boundingBox,

View file

@ -564,7 +564,6 @@
element.style.fontSize = fontSize + 'px'; element.style.fontSize = fontSize + 'px';
if (renderCommand.userData.value !== 0) { if (renderCommand.userData.value !== 0) {
let customData = readStructAtAddress(renderCommand.userData.value, customHTMLDataDefinition); let customData = readStructAtAddress(renderCommand.userData.value, customHTMLDataDefinition);
console.log(customData.disablePointerEvents.value);
element.style.pointerEvents = customData.disablePointerEvents.value ? 'none' : 'all'; element.style.pointerEvents = customData.disablePointerEvents.value ? 'none' : 'all';
let linkContents = customData.link.length.value > 0 ? textDecoder.decode(new Uint8Array(memoryDataView.buffer.slice(customData.link.chars.value, customData.link.chars.value + customData.link.length.value))) : 0; let linkContents = customData.link.length.value > 0 ? textDecoder.decode(new Uint8Array(memoryDataView.buffer.slice(customData.link.chars.value, customData.link.chars.value + customData.link.length.value))) : 0;
memoryDataView.setUint32(0, renderCommand.id.value, true); memoryDataView.setUint32(0, renderCommand.id.value, true);