From c776eeac0314e528398ceb9aed3749785e165bf0 Mon Sep 17 00:00:00 2001 From: Tom Grushka Date: Tue, 19 May 2026 17:46:21 -0600 Subject: [PATCH] change a11y zoom easing function from EaseInOutCubic to Linear to avoid lagging mouse wheel scroll --- src/shell/zoom.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell/zoom.rs b/src/shell/zoom.rs index bb681563..b4ba339f 100644 --- a/src/shell/zoom.rs +++ b/src/shell/zoom.rs @@ -9,7 +9,7 @@ use cosmic::{ }; use cosmic_comp_config::ZoomMovement; use cosmic_config::ConfigSet; -use keyframe::{ease, functions::EaseInOutCubic}; +use keyframe::{ease, functions::Linear}; use smithay::{ backend::renderer::{ImportMem, Renderer, element::AsRenderElements}, desktop::space::SpaceElement, @@ -135,7 +135,7 @@ impl OutputZoomState { let percentage = duration_since.as_millis() as f32 / ANIMATION_DURATION.as_millis() as f32; ease( - EaseInOutCubic, + Linear, EasePoint(*old_point), EasePoint(self.focal_point), percentage, @@ -159,7 +159,7 @@ impl OutputZoomState { let percentage = Instant::now().duration_since(*start).as_millis() as f32 / ANIMATION_DURATION.as_millis() as f32; - ease(EaseInOutCubic, *old_level, self.level, percentage) + ease(Linear, *old_level, self.level, percentage) } else { self.level }