From 10e1c7472f5415339145eb3ee29d8cb7ddf13e54 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 16 Nov 2026 09:37:26 -0800 Subject: [PATCH] Tools: measure a tool card only for the button under the pointer With Show Tool Cards on, every tool button built and translated its card's hint lines on every frame to estimate the card's height. A button the pointer is not over now returns before that work. --- crates/ui-egui/src/toolbar/card.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/ui-egui/src/toolbar/card.rs b/crates/ui-egui/src/toolbar/card.rs index feff15744b..6ff3ef0318 100644 --- a/crates/ui-egui/src/toolbar/card.rs +++ b/crates/ui-egui/src/toolbar/card.rs @@ -72,6 +72,12 @@ pub(crate) fn hover(resp: Response, tool: &ToolInfo, side: Side, tip: Option