From a0c311f436f24f7ca9b08b1f392960c5c0275593 Mon Sep 17 00:00:00 2001 From: lucasmerlin Date: Tue, 2 Jun 2026 22:29:41 +0200 Subject: [PATCH] Scroll with mouse --- crates/egui/src/containers/scroll_area.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/containers/scroll_area.rs b/crates/egui/src/containers/scroll_area.rs index a256defa2..1cba80f92 100644 --- a/crates/egui/src/containers/scroll_area.rs +++ b/crates/egui/src/containers/scroll_area.rs @@ -166,10 +166,10 @@ pub enum DragScroll { /// Only allow drag-to-scroll when a touch screen is detected /// (see [`crate::InputState::has_touch_screen`]). The recommended default. - #[default] OnTouch, /// Always allow drag-to-scroll, even with a mouse. + #[default] Always, } @@ -229,7 +229,7 @@ impl Default for ScrollSource { fn default() -> Self { Self { scroll_bar: true, - drag: DragScroll::OnTouch, + drag: DragScroll::Always, mouse_wheel: true, } }