Files
kryon/mk/zx-shell.html
T
waozi 60d6e2bb4c Let document-layout pages own the wheel and report commit failures
The native HTML/CSS DOM rendering hands compiled apps a real scrolling
document, but the page event bridge still claimed wheel events for the
hidden canvas, so the browser never scrolled, and mouse downs stole
focus from text inputs, killing double-click selection. For
document-layout pages the bridge now leaves the wheel to the browser and
keeps the canvas out of focus taking.

Commit failures also report which scope and widget kind were left open,
via FrameFailureAt and the pending-scope keys recorded in the tree, and
the zx test shell logs module exits with a stack.
2026-10-29 11:32:05 -03:00

34 lines
1.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kryon ZX</title>
<style>
html, body { margin: 0; width: 100%; height: 100%; background: #f8fafc; overflow: hidden; overscroll-behavior: none; }
#zx-controls { box-sizing: border-box; height: 32px; display: flex; gap: 12px; align-items: center; padding: 4px 8px; font: 13px sans-serif; }
#zx-controls input { max-width: 240px; }
#canvas-frame { width: 100%; height: calc(100% - 32px); }
#result { display: none; }
canvas { display: block; width: 100%; height: 100%; }
</style>
</head>
<body>
<div id="zx-controls"></div>
<div id="canvas-frame"><canvas id="canvas"></canvas></div>
<pre id="result">pending</pre>
<script>
var Module = {
onExit: function(code) {
console.log("MODULE EXIT " + code + " at:", new Error().stack);
document.getElementById("result").textContent = code === 0 ? "PASS" : "FAIL " + code;
},
onAbort: function(reason) {
document.getElementById("result").textContent = "ABORT " + reason;
}
};
</script>
{{{ SCRIPT }}}
</body>
</html>