From 07a471f2857490bc13072b9fcbc38c6bb65204d6 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Fri, 14 Feb 2025 18:34:32 +0100 Subject: [PATCH] zoom: Don't render at 100% scale while animating --- src/shell/focus/order.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shell/focus/order.rs b/src/shell/focus/order.rs index b9390c11..6cc71488 100644 --- a/src/shell/focus/order.rs +++ b/src/shell/focus/order.rs @@ -70,7 +70,11 @@ fn render_input_order_internal( element_filter: ElementFilter, mut callback: impl FnMut(Stage) -> ControlFlow, ()>, ) -> ControlFlow, ()> { - if shell.zoom_state.is_some() { + if shell + .zoom_state + .as_ref() + .is_some_and(|state| state.current_level() != 1.0) + { callback(Stage::ZoomUI)?; }