mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
Merge 6e190427d8
into 37675089e3
This commit is contained in:
commit
c1b84e163d
|
@ -500,9 +500,6 @@
|
||||||
|
|
||||||
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);
|
||||||
if (linkContents.length > 0 && (window.mouseDownThisFrame || window.touchDown) && instance.exports.Clay_PointerOver(0)) {
|
|
||||||
window.location.href = linkContents;
|
|
||||||
}
|
|
||||||
if (linkContents.length > 0) {
|
if (linkContents.length > 0) {
|
||||||
element.href = linkContents;
|
element.href = linkContents;
|
||||||
}
|
}
|
||||||
|
@ -567,9 +564,6 @@
|
||||||
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);
|
||||||
if (linkContents.length > 0 && (window.mouseDownThisFrame || window.touchDown) && instance.exports.Clay_PointerOver(0)) {
|
|
||||||
window.location.href = linkContents;
|
|
||||||
}
|
|
||||||
if (linkContents.length > 0) {
|
if (linkContents.length > 0) {
|
||||||
element.href = linkContents;
|
element.href = linkContents;
|
||||||
}
|
}
|
||||||
|
@ -854,4 +848,4 @@
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -500,9 +500,6 @@
|
||||||
|
|
||||||
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);
|
||||||
if (linkContents.length > 0 && (window.mouseDownThisFrame || window.touchDown) && instance.exports.Clay_PointerOver(0)) {
|
|
||||||
window.location.href = linkContents;
|
|
||||||
}
|
|
||||||
if (linkContents.length > 0) {
|
if (linkContents.length > 0) {
|
||||||
element.href = linkContents;
|
element.href = linkContents;
|
||||||
}
|
}
|
||||||
|
@ -567,9 +564,6 @@
|
||||||
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);
|
||||||
if (linkContents.length > 0 && (window.mouseDownThisFrame || window.touchDown) && instance.exports.Clay_PointerOver(0)) {
|
|
||||||
window.location.href = linkContents;
|
|
||||||
}
|
|
||||||
if (linkContents.length > 0) {
|
if (linkContents.length > 0) {
|
||||||
element.href = linkContents;
|
element.href = linkContents;
|
||||||
}
|
}
|
||||||
|
@ -854,4 +848,4 @@
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -394,9 +394,6 @@
|
||||||
let configMemory = new Uint8Array(memoryDataView.buffer.slice(renderCommand.config.value, renderCommand.config.value + config.__size));
|
let configMemory = new Uint8Array(memoryDataView.buffer.slice(renderCommand.config.value, renderCommand.config.value + config.__size));
|
||||||
let linkContents = config.link.length.value > 0 ? textDecoder.decode(new Uint8Array(memoryDataView.buffer.slice(config.link.chars.value, config.link.chars.value + config.link.length.value))) : 0;
|
let linkContents = config.link.length.value > 0 ? textDecoder.decode(new Uint8Array(memoryDataView.buffer.slice(config.link.chars.value, config.link.chars.value + config.link.length.value))) : 0;
|
||||||
memoryDataView.setUint32(0, renderCommand.id.value, true);
|
memoryDataView.setUint32(0, renderCommand.id.value, true);
|
||||||
if (linkContents.length > 0 && (window.mouseDownThisFrame || window.touchDown) && instance.exports.Clay_PointerOver(0)) {
|
|
||||||
window.location.href = linkContents;
|
|
||||||
}
|
|
||||||
if (!dirty && !MemoryIsDifferent(configMemory, elementData.previousMemoryConfig, config.__size)) {
|
if (!dirty && !MemoryIsDifferent(configMemory, elementData.previousMemoryConfig, config.__size)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -528,4 +525,4 @@
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue