From 8304b18886cd94c6ecf16bf0215c78f8c2d7e5cc Mon Sep 17 00:00:00 2001 From: Tom Grushka <89836285+tgrushka@users.noreply.github.com> Date: Tue, 28 Jul 2026 14:47:53 -0600 Subject: [PATCH] Clamp zoom level to 1.0 if < 1.01 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix floating point edge cases that keep zoom enabled when level ≈ 1.0 Co-authored-by: Luuk van der Duim --- src/input/actions.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/actions.rs b/src/input/actions.rs index adabb8a6..8a5ef84c 100644 --- a/src/input/actions.rs +++ b/src/input/actions.rs @@ -1125,6 +1125,7 @@ impl State { current_level * factor } .clamp(1.0, MAX_ZOOM); + let new_level = if new_level < 1.01 { 1.0 } else { new_level }; shell.trigger_zoom( seat, Some(&output),