fix scroll artifacts at widget edges, disable esp-mesh
This commit is contained in:
@@ -104,10 +104,9 @@ impl RenderEngine {
|
||||
for cmd in &mut cmds {
|
||||
cmd.y = cmd.y.saturating_sub(scroll_offset);
|
||||
}
|
||||
// Drop commands that scrolled above bounds
|
||||
cmds.retain(|cmd| {
|
||||
cmd.y + self.metrics.char_height(cmd.font) > bounds.y
|
||||
&& cmd.y < bounds.y + bounds.height
|
||||
let line_h = self.metrics.char_height(cmd.font);
|
||||
cmd.y >= bounds.y && cmd.y + line_h <= bounds.y + bounds.height
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user