From 7ce1b21019f65444100c7147bff17a3b6a4f02ef Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 29 Mar 2026 21:57:32 +0200 Subject: [PATCH] fix: prevent canvas area from blocking sidebar interactions The canvas_content Area was positioned at Pos2::ZERO (screen origin), causing it to cover the entire screen including the sidebar region. Since this Area renders at Order::Middle (above the sidebar panel), it intercepted pointer events meant for sidebar items when terminal panels overlapped the sidebar area. Moving the Area origin to canvas_rect.min restricts it to the canvas region only, allowing sidebar right-clicks and other interactions to work correctly. --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 69653ba..2037eb5 100644 --- a/src/app.rs +++ b/src/app.rs @@ -610,7 +610,7 @@ impl eframe::App for VoidApp { egui::Area::new(egui::Id::new("canvas_content")) .order(egui::Order::Middle) - .fixed_pos(Pos2::ZERO) + .fixed_pos(canvas_rect.min) .interactable(true) .show(ctx, |ui| { ctx.set_transform_layer(ui.layer_id(), transform);