fix scroll artifacts at widget edges, disable esp-mesh

This commit is contained in:
2026-06-19 13:32:44 +02:00
parent 5bcf4c4e0d
commit 838e29702a
2 changed files with 5 additions and 3 deletions

View File

@@ -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
});
}

View File

@@ -23,6 +23,9 @@ CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1=n
# Disable Bluetooth (unused)
CONFIG_BT_ENABLED=n
# Disable ESP-MESH (unused)
CONFIG_ESP_WIFI_MESH_SUPPORT=n
# Reduce log verbosity
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
CONFIG_LOG_MAXIMUM_LEVEL_INFO=y