Add per-Mount scrolling with shared paint and input clipping
Verify Tessera GUI / verify (push) Failing after 7m33s

This commit is contained in:
2026-10-21 22:05:08 +08:00
parent 7acc5783a5
commit 6e69c5e5ce
18 changed files with 784 additions and 33 deletions
+8 -1
View File
@@ -42,7 +42,10 @@ fn number(store: &ObjectStore, object: ObjectRef, name: &str) -> Result<f32, VmE
.to_string()
.parse::<f32>()
.map_err(|_| invalid("invalid paint number"))?;
if !value.is_finite() || !(0.0..=MAX_DIMENSION as f32).contains(&value) {
if !value.is_finite()
|| value.abs() > MAX_DIMENSION as f32
|| (!matches!(name, "x" | "y") && value < 0.0)
{
return Err(invalid("paint number exceeds bounds"));
}
Ok(value)
@@ -294,7 +297,9 @@ pub fn render(
pending.extend(node.children().iter().map(|node| node.as_ref()));
}
let mut commands = Vec::new();
let mut clips = Vec::new();
for mount in &frame.mounts {
let before = commands.len();
if let Some(custom) = output.commands.get(&mount.id) {
commands.extend(custom.iter().cloned());
} else {
@@ -313,11 +318,13 @@ pub fn render(
commands.push(command);
}
}
clips.extend(std::iter::repeat_n(mount.clip, commands.len() - before));
if commands.len() > 10_000 {
bail!("paint command budget exceeded");
}
}
frame.commands = commands;
frame.command_clips = clips;
let registry = object(vm.get_attr(desktop, "types")?)?;
Ok(reads
.into_iter()