//! - **Shared queue via Arc<Mutex>**: The `ScrollInputQueue` is cloned into the timer's `RefAny`
//! - **Self-terminating**: When all velocities are below threshold and no inputs pending, the timer
#[allow(clippy::suboptimal_flops)] // mul_add not guaranteed faster/available without target +fma; keep explicit a*b+c
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)] // large but cohesive: single-purpose
let crossed = overshoot_after != 0.0 && overshoot_after.signum() != overshoot_before.signum();
#[allow(clippy::suboptimal_flops)] // mul_add not guaranteed faster/available without target +fma
fn with_env<R>(setup: impl FnOnce(&mut LayoutWindow), f: impl FnOnce(&mut Env<'_>) -> R) -> R {