From 7641c82939c8a06f7cdcf34f742056e11c65bed7 Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 22:53:32 +0000 Subject: [PATCH] Select: a wheel notch down steps to the next entry and up to the previous one, as the combo box and the tab strip do --- crates/ui-widgets/src/pickers/select.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-widgets/src/pickers/select.rs b/crates/ui-widgets/src/pickers/select.rs index 206ce7dc2..5b2f95909 100644 --- a/crates/ui-widgets/src/pickers/select.rs +++ b/crates/ui-widgets/src/pickers/select.rs @@ -255,14 +255,14 @@ impl Component for Select<'_, T> { self.pick(cx, to); } } - // The wheel gives one notch, up for a step forward. The end share of the gesture has no scroll and commits the run. + // The wheel gives one notch, down for a step forward (as a combo box and a tab strip step). The end share of the gesture has no scroll and commits the run. if let Some(wheel) = cx.take_wheel() { if matches!(wheel.phase, WheelPhase::End) { cx.wheel_run(wheel.phase, None); } else if let StepResult::Set(along) = wheel_step(&ValueSteps::new(0.0, -1.0, 1.0, 1.0, 1.0), ValueAxes::Both, &wheel, cx.env.direction().is_rtl()) && along != 0.0 - && let Some(to) = step_stop(&stops, self.position(cx.value()), along > 0.0) + && let Some(to) = step_stop(&stops, self.position(cx.value()), along < 0.0) && let Some(value) = self.entries[to].value() { cx.wheel_run(wheel.phase, Some(value.clone()));